Skip to content

Commit

Permalink
Fixes a small static function calling issue with the new change email…
Browse files Browse the repository at this point in the history
… functionality
  • Loading branch information
CorWatts committed May 28, 2018
1 parent 3a38e18 commit deefe5a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion site/controllers/ProfileController.php
Expand Up @@ -126,7 +126,8 @@ public function actionRequestChangeEmail() {
}

public function actionChangeEmail(string $token) {
$user = \common\models\User::findByChangeEmailToken($token);
$user = Yii::$container->get(\common\interfaces\UserInterface::class)->findByChangeEmailToken($token);

if($user) {
$validator = new \yii\validators\EmailValidator();
if($validator->validate($user->desired_email, $error)) {
Expand Down

0 comments on commit deefe5a

Please sign in to comment.