diff options
Diffstat (limited to 'lib/gitlab/auth/user_access_denied_reason.rb')
-rw-r--r-- | lib/gitlab/auth/user_access_denied_reason.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/gitlab/auth/user_access_denied_reason.rb b/lib/gitlab/auth/user_access_denied_reason.rb index e73f6ca808c..cc4b8d887ff 100644 --- a/lib/gitlab/auth/user_access_denied_reason.rb +++ b/lib/gitlab/auth/user_access_denied_reason.rb @@ -17,6 +17,10 @@ module Gitlab when :deactivated "Your account has been deactivated by your administrator. "\ "Please log back in from a web browser to reactivate your account at #{Gitlab.config.gitlab.url}" + when :unconfirmed + "Your primary email address is not confirmed. "\ + "Please check your inbox for the confirmation instructions. "\ + "In case the link is expired, you can request a new confirmation email at #{Rails.application.routes.url_helpers.new_user_confirmation_url}" else "Your account has been blocked." end @@ -31,6 +35,8 @@ module Gitlab :terms_not_accepted elsif @user.deactivated? :deactivated + elsif !@user.confirmed? + :unconfirmed else :blocked end |