Loading Changelog.md +1 −0 Original line number Diff line number Diff line Loading @@ -5,6 +5,7 @@ ## Bug fixes * Improve handling of mixed case hostnames while fetching OpenGraph data [#8021](https://github.com/diaspora/diaspora/pull/8021) * Fix "remember me" with two factor authentication enabled [#8031](https://github.com/diaspora/diaspora/pull/8031) ## Features * Add line mentioning diaspora\* on the splash page [#7966](https://github.com/diaspora/diaspora/pull/7966) Loading app/controllers/sessions_controller.rb +2 −2 Original line number Diff line number Diff line Loading @@ -12,9 +12,9 @@ class SessionsController < Devise::SessionsController # rubocop:enable Rails/LexicallyScopedActionFilter def find_user return User.find(session[:otp_user_id]) if session[:otp_user_id] return User.find_for_authentication(username: params[:user][:username]) if params[:user][:username] User.find_for_authentication(username: params[:user][:username]) if params[:user][:username] User.find(session[:otp_user_id]) if session[:otp_user_id] end def authenticate_with_2fa Loading Loading
Changelog.md +1 −0 Original line number Diff line number Diff line Loading @@ -5,6 +5,7 @@ ## Bug fixes * Improve handling of mixed case hostnames while fetching OpenGraph data [#8021](https://github.com/diaspora/diaspora/pull/8021) * Fix "remember me" with two factor authentication enabled [#8031](https://github.com/diaspora/diaspora/pull/8031) ## Features * Add line mentioning diaspora\* on the splash page [#7966](https://github.com/diaspora/diaspora/pull/7966) Loading
app/controllers/sessions_controller.rb +2 −2 Original line number Diff line number Diff line Loading @@ -12,9 +12,9 @@ class SessionsController < Devise::SessionsController # rubocop:enable Rails/LexicallyScopedActionFilter def find_user return User.find(session[:otp_user_id]) if session[:otp_user_id] return User.find_for_authentication(username: params[:user][:username]) if params[:user][:username] User.find_for_authentication(username: params[:user][:username]) if params[:user][:username] User.find(session[:otp_user_id]) if session[:otp_user_id] end def authenticate_with_2fa Loading