concrete/authentication/concrete/controller.php
public function required_password_upgrade()
    {
        $email = $this->post('uEmail');
        $token = $this->app->make(Token::class);
        $this->set('token', $token);

        if ($email) {
            $errorValidator = Core::make('helper/validation/error');
            $userInfo = Core::make('Concrete\Core\User\UserInfoRepository')->getByName(Session::get('uPasswordResetUserName'));

            try {
                if ($userInfo && $email != $userInfo->getUserEmail()) {
                    throw new \Exception(t(sprintf('Invalid email address %s provided resetting a password', $email)));
                }
            } catch (\Exception $e) {
                $errorValidator->add($e);
            }

            $this->forgot_password();
        } else {
            $this->set('authType', $this->getAuthenticationType());
            $this->set('intro_msg', Core::make('config/database')->get('concrete.password.reset.message'));
        }
    }
public function required_password_upgrade()
    {
        $email = $this->post('uEmail');
        $token = $this->app->make(Token::class);
        $this->set('token', $token);

        if ($email) {
            $errorValidator = Core::make('helper/validation/error');
            $userInfo = Core::make('Concrete\Core\User\UserInfoRepository')->getByName(Session::get('uPasswordResetUserName'));

            try {
                if ($userInfo && $email != $userInfo->getUserEmail()) {
                    throw new \Exception(t(sprintf('Invalid email address %s provided resetting a password', $email)));
                }
            } catch (\Exception $e) {
                $errorValidator->add($e);
            }

            $this->forgot_password();
        } else {
            $this->set('authType', $this->getAuthenticationType());
            $this->set('intro_msg', Core::make('config/database')->get('concrete.password.reset.message'));
        }
    }
public function required_password_upgrade ( ) { $ email = $ this -> post ( 'uEmail' ) ; $ token = $ this -> app -> make ( Token :: class ) ; $ this -> set ( 'token' , $ token ) ; if ( $ email ) { $ errorValidator = Core :: make ( 'helper/validation/error' ) ; $ userInfo = Core :: make ( 'Concrete\Core\User\UserInfoRepository' ) -> getByName ( Session :: get ( 'uPasswordResetUserName' ) ) ; try { if ( $ userInfo && $ email != $ userInfo -> getUserEmail ( ) ) { throw new \ Exception ( t ( sprintf ( 'Invalid email address %s provided resetting a password' , $ email ) ) ) ; } } catch ( \ Exception $ e ) { $ errorValidator -> add ( $ e ) ; } $ this -> forgot_password ( ) ; } else { $ this -> set ( 'authType' , $ this -> getAuthenticationType ( ) ) ; $ this -> set ( 'intro_msg' , Core :: make ( 'config/database' ) -> get ( 'concrete.password.reset.message' ) ) ; } }
Called when a user tries to log in after his password has been reset by "Global Password Reset".
Called when a user tries to log in after his password has been reset by Global Password Reset .