mirror of
https://github.com/humhub/humhub.git
synced 2025-04-21 23:52:04 +02:00
Don't require approval for user created from administration (#7479)
* Don't require approval for user created from administration * Don't require approval for user created from administration
This commit is contained in:
parent
98b0dce221
commit
09b59a8bbc
@ -261,8 +261,8 @@ class UserController extends Controller
|
||||
|
||||
public function actionAdd()
|
||||
{
|
||||
$registration = new Registration(enableEmailField: true, enablePasswordForm: true, enableMustChangePassword: true);
|
||||
$registration->enableUserApproval = true;
|
||||
$registration = new Registration(enableEmailField: true, enableMustChangePassword: true);
|
||||
$registration->enableUserApproval = false;
|
||||
|
||||
if ($registration->submitted('save') && $registration->validate() && $registration->register()) {
|
||||
return $this->redirect(['edit', 'id' => $registration->getUser()->id]);
|
||||
|
@ -123,7 +123,7 @@ class AuthClientService
|
||||
return null;
|
||||
}
|
||||
|
||||
$registration = new Registration(enablePasswordForm: false, enableEmailField: true);
|
||||
$registration = new Registration(enableEmailField: true, enablePasswordForm: false);
|
||||
|
||||
if ($this->authClient instanceof ApprovalBypass) {
|
||||
$registration->enableUserApproval = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user