adding additional field into session
git-svn-id: http://svn.barleysodas.com/barleysodas/trunk@119 0f7b21a7-9e3a-4941-bbeb-ce5c7c368fa7master
parent
b0b9dea1f2
commit
f02f3ba8d7
|
@ -8,6 +8,7 @@ class SessionsController < ApplicationController
|
||||||
@people = People.authenticate(params[:login], params[:password])
|
@people = People.authenticate(params[:login], params[:password])
|
||||||
if @people
|
if @people
|
||||||
session[:people_title] = @people.title
|
session[:people_title] = @people.title
|
||||||
|
session[:people_title_for_url] = @people.page.title_for_url
|
||||||
session[:people_id] = @people.id
|
session[:people_id] = @people.id
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html {
|
format.html {
|
||||||
|
|
Reference in New Issue