mirror of
https://github.com/docusealco/docuseal
synced 2026-11-05 22:52:32 -05:00
add reset password link
This commit is contained in:
1 parent
1245ff2cce
commit
4dc6149530
8 files changed
+35
-13
No files matched your search
@@ -30,6 +30,7 @@ class UsersController < ApplicationController
|
||||
return render turbo_stream: turbo_stream.replace(:modal, template: 'users/new'), status: :unprocessable_content
|
||||
end
|
||||
|
||||
@user.password = SecureRandom.hex if @user.password.blank?
|
||||
@user.role = User::ADMIN_ROLE unless role_valid?(@user.role)
|
||||
|
||||
if @user.save
|
||||
|
||||
Reference in new issue
Block a user