Skip to content

Commit

Permalink
== -> ===
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood committed May 12, 2017
1 parent d1a5f0b commit 9f39000
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dist/twist/Core/Models/User/Auth.model.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ public static function validate($strEmail,$strPassword){
}

if( $blValidPassword ) {
if( $arrUserData['enabled'] == '1' ) {
if( \Twist::framework()->setting( 'USER_EMAIL_VERIFICATION' ) == false || ( \Twist::framework()->setting( 'USER_EMAIL_VERIFICATION' ) && $arrUserData['verified'] == '1' ) ) {
if( $arrUserData['enabled'] === '1' ) {
if( \Twist::framework()->setting( 'USER_EMAIL_VERIFICATION' ) === false || ( \Twist::framework()->setting( 'USER_EMAIL_VERIFICATION' ) && $arrUserData['verified'] === '1' ) ) {

//We don't want to store the users hashed password in the auth array
unset( $arrUserData['password'] );
Expand All @@ -170,7 +170,7 @@ public static function validate($strEmail,$strPassword){
self::$arrCurrentSession['user_id'] = $arrUserData['id'];
self::$arrCurrentSession['user_data'] = $arrUserData;

if( \Twist::framework()->setting( 'USER_PASSWORD_CHANGE' ) == true && $arrUserData['temp_password'] == '1' ) {
if( \Twist::framework()->setting( 'USER_PASSWORD_CHANGE' ) === true && $arrUserData['temp_password'] === '1' ) {
//The user is on a temporary password and a change is required by the system
self::$arrCurrentSession['issue'] = 'temporary';
self::$arrCurrentSession['message'] = 'You are using a temporary password, please change your password';
Expand Down

0 comments on commit 9f39000

Please sign in to comment.