X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/0e66875ace5baf3b86221abd7db86293422c0898..9b67da24c034bacb0e7cf8c907e8ae3a31423469:/app/controllers/user_controller.rb diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index f01157bc0..9972ca3ee 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 @@ -163,7 +165,7 @@ class UserController < ApplicationController @user.save! render :nothing => true else - render :status => 400, :nothing => true + render :nothing => true, :status => :method_not_allowed end 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]