Remove sign-in token authentication, instead send e-mail about new sign-in (#17970)
This commit is contained in:
parent
abb11778d7
commit
6221b36b27
18 changed files with 137 additions and 362 deletions
|
@ -13,14 +13,6 @@ class UserPolicy < ApplicationPolicy
|
|||
admin? && !record.staff?
|
||||
end
|
||||
|
||||
def disable_sign_in_token_auth?
|
||||
staff?
|
||||
end
|
||||
|
||||
def enable_sign_in_token_auth?
|
||||
staff?
|
||||
end
|
||||
|
||||
def confirm?
|
||||
staff? && !record.confirmed?
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue