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

@@ -51,6 +51,13 @@ namespace :blog do
)
end
end
task :create_user, [:email] => ["blog:load_environment"] do |t, args|
require "hanami/prepare"
user_repo = Admin::Container["repos.user_repo"]
user_repo.create(id: SecureRandom.uuid, email: args[:email])
end
end
namespace :tailwind do