backend/models/Admins.php
/**
     * Finds user by password reset token
     *
     * @param string $token password reset token
     * @param bool $checkTokenValid
     * @return Admins|null
     */
Finds user by password reset token
@param string $token password reset token
@param bool $checkTokenValid
@return Admins|null
Finds user by password reset token @param string $token password reset token @param bool $checkTokenValid @return Admins|null
public static function findByPasswordResetToken($token, $checkTokenValid=true)
    {
        if ($checkTokenValid && !self::isPasswordResetTokenValid($token)) {
            return null;
        }
        return static::findOne(['password_reset_token' => $token]);
    }
public static function findByPasswordResetToken ( $ token , $ checkTokenValid = true ) { if ( $ checkTokenValid && ! self :: isPasswordResetTokenValid ( $ token ) ) { return null ; } return static :: findOne ( [ 'password_reset_token' => $ token ] ) ; }
Finds user by password reset token
 @param string $token password reset token
 @param bool $checkTokenValid
 @return Admins|null
Finds user by password reset token @param string $token password reset token @param bool $checkTokenValid @return Admins|null