mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-15 16:59:41 +00:00
Remove sign-in token authentication, instead send e-mail about new sign-in (#17970)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user