- flash[:notice] = 'User was successfully created. Check your email for a confirmation note, and you\'ll be mapping in no time :-)'
+ flash[:notice] = "User was successfully created. Check your email for a confirmation note, and you\'ll be mapping in no time :-)<br>Please note that you won't be able to login until you've received and confirmed your email address."
Notifier::deliver_signup_confirm(@user)
redirect_to :action => 'login'
else
Notifier::deliver_signup_confirm(@user)
redirect_to :action => 'login'
else
@@ -19,6+20,7 @@ class UserController < ApplicationController
end
def account
end
def account
+ @title = 'edit account'
if params[:user] and params[:user][:display_name] and params[:user][:description]
home_lat = params[:user][:home_lat]
home_lon = params[:user][:home_lon]
if params[:user] and params[:user][:display_name] and params[:user][:description]
home_lat = params[:user][:home_lat]
home_lon = params[:user][:home_lon]
@@ -58,6+60,7 @@ class UserController < ApplicationController
end
def lost_password
end
def lost_password
+ @title = 'lost password'
if params[:user] and params[:user][:email]
user = User.find_by_email(params['user']['email'])
if user
if params[:user] and params[:user][:email]
user = User.find_by_email(params['user']['email'])
if user
@@ -74,6+77,7 @@ class UserController < ApplicationController
end
def reset_password
end
def reset_password
+ @title = 'reset password'
if params['token']
user = User.find_by_token(params['token'])
if user
if params['token']
user = User.find_by_token(params['token'])
if user
@@ -92,9+96,11 @@ class UserController < ApplicationController
end
def new
end
def new
+ @title = 'create account'
end
def login
end
def login
+ @title = 'login'
if params[:user]
email = params[:user][:email]
pass = params[:user][:password]
if params[:user]
email = params[:user][:email]
pass = params[:user][:password]
@@ -110,6+116,8 @@ class UserController < ApplicationController