sets session[:locale] = user.locale after login
This commit is contained in:
parent
6569579c02
commit
206709aa61
1 changed files with 1 additions and 0 deletions
|
@ -9,6 +9,7 @@ class SessionsController < ApplicationController
|
|||
def create
|
||||
user = User.authenticate(params[:nick], params[:password])
|
||||
if user
|
||||
session[:locale] = user.locale
|
||||
session[:user_id] = user.id
|
||||
session[:scope] = FoodsoftConfig.scope # Save scope in session to not allow switching between foodcoops with one account
|
||||
if session[:return_to].present?
|
||||
|
|
Loading…
Reference in a new issue