mirror of
https://github.com/humhub/humhub.git
synced 2025-01-17 22:28:51 +01:00
Merge pull request #3718 from funkycram/patch-4
Update RegistrationController.php
This commit is contained in:
commit
ec66148eaa
@ -77,7 +77,10 @@ class RegistrationController extends Controller
|
||||
if ($registration->getUser()->status === User::STATUS_ENABLED) {
|
||||
Yii::$app->user->switchIdentity($registration->models['User']);
|
||||
$registration->models['User']->updateAttributes(['last_login' => new \yii\db\Expression('NOW()')]);
|
||||
return $this->redirect(['/']);
|
||||
if (Yii::$app->request->getIsAjax()) {
|
||||
return $this->htmlRedirect(Yii::$app->user->returnUrl);
|
||||
}
|
||||
return $this->redirect(Yii::$app->user->returnUrl);
|
||||
}
|
||||
|
||||
return $this->render('success', [
|
||||
|
Loading…
x
Reference in New Issue
Block a user