X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/0e66875ace5baf3b86221abd7db86293422c0898..71606b34f0fa50ab340c85034f69e7357479b93c:/app/controllers/user_controller.rb?ds=inline diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index f01157bc0..b1a37872b 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -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 @@ -184,11 +186,6 @@ class UserController < ApplicationController @title = @this_user.display_name end - def diary - @this_user = User.find_by_display_name(params[:display_name]) - @title = @this_user.display_name + "'s diary" - end - def make_friend if params[:display_name]