StandardRB

This commit is contained in:
2023-12-02 20:32:57 +11:00
parent c6e0c6e832
commit 8501279eaa
15 changed files with 29 additions and 34 deletions

View File

@@ -5,8 +5,8 @@ module Admin
module Sessions
class Create
include Deps[
"repos.login_tokens_repo",
"repos.user_repo"
"repos.login_tokens_repo",
"repos.user_repo"
]
def call(email:)
@@ -37,7 +37,7 @@ module Admin
body "#{app_settings.micropub_site_url}/admin/login/#{token.token}"
end
mail[:to] = email
mail[:to] = user.email
mail[:from] = app_settings.from_email
mail.deliver

View File

@@ -12,13 +12,9 @@ module Admin
return nil
end
user_id = token.user_id
if user_id
user_id
end
token.user_id
end
end
end
end
end
end