X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/072b0717e4d7fd69e1d28c5c4c3805c7fb4f563e..f0b5776389bff72fd88cc3e628945fd6c0554f1e:/app/controllers/user_controller.rb?ds=sidebyside diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index 459058ee5..998a636c1 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -11,7 +11,7 @@ class UserController < ApplicationController @user.set_defaults if @user.save - 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 :-)
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 @@ -116,6 +116,8 @@ class UserController < ApplicationController redirect_to :controller => 'site', :action => 'index' end return + elsif User.authenticate(email, pass, false) + flash[:notice] = "Sorry, your account is not active yet.
Please click on the link in the account confirmation email to activate your account." else flash[:notice] = "Sorry, couldn't log in with those details." end