set user language on login to override session
This commit is contained in:
parent
c48ce138f3
commit
0978b84f4d
1 changed files with 1 additions and 0 deletions
|
@ -11,6 +11,7 @@ class SessionsController < ApplicationController
|
|||
if user
|
||||
session[:user_id] = user.id
|
||||
session[:scope] = FoodsoftConfig.scope # Save scope in session to not allow switching between foodcoops with one account
|
||||
session[:locale] = user_settings_language
|
||||
if session[:return_to].present?
|
||||
redirect_to_url = session[:return_to]
|
||||
session[:return_to] = nil
|
||||
|
|
Loading…
Reference in a new issue