Commit 70ef433e09ebfc9d48e990e22f2fb223193dd087
1 parent
5f7dc99a
Exists in
master
and in
4 other branches
Rewording for the account being blocked
When signing in with SSO, if the default behaviour of gitlab is to block SSO user, the only message the people will get is 'Your account was blocked' They should get the idea this might be only temporary and not because of a technical problem
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
app/controllers/application_controller.rb
@@ -34,7 +34,7 @@ class ApplicationController < ActionController::Base | @@ -34,7 +34,7 @@ class ApplicationController < ActionController::Base | ||
34 | def reject_blocked! | 34 | def reject_blocked! |
35 | if current_user && current_user.blocked | 35 | if current_user && current_user.blocked |
36 | sign_out current_user | 36 | sign_out current_user |
37 | - flash[:alert] = "Your account was blocked" | 37 | + flash[:alert] = "Your account is blocked. Retry when an admin unblock it." |
38 | redirect_to new_user_session_path | 38 | redirect_to new_user_session_path |
39 | end | 39 | end |
40 | end | 40 | end |
@@ -42,7 +42,7 @@ class ApplicationController < ActionController::Base | @@ -42,7 +42,7 @@ class ApplicationController < ActionController::Base | ||
42 | def after_sign_in_path_for resource | 42 | def after_sign_in_path_for resource |
43 | if resource.is_a?(User) && resource.respond_to?(:blocked) && resource.blocked | 43 | if resource.is_a?(User) && resource.respond_to?(:blocked) && resource.blocked |
44 | sign_out resource | 44 | sign_out resource |
45 | - flash[:alert] = "Your account was blocked" | 45 | + flash[:alert] = "Your account is blocked. Retry when an admin unblock it." |
46 | new_user_session_path | 46 | new_user_session_path |
47 | else | 47 | else |
48 | super | 48 | super |