Update authentication method

This commit is contained in:
2023-11-18 18:20:29 +11:00
parent 9d9ffc9122
commit 3b3ad66ba3
24 changed files with 273 additions and 25 deletions

View File

@@ -0,0 +1,15 @@
module Admin
module Repos
class LoginTokensRepo < Adamantium::Repo[:login_tokens]
commands :create
def by_token(token:)
login_tokens.where(token: token).one
end
def delete_all
login_tokens.delete
end
end
end
end