Browse Source

fix authRegister bug requiring 2 logins

CauseFX 4 năm trước cách đây
mục cha
commit
b81a42da1c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      api/classes/organizr.class.php

+ 1 - 1
api/classes/organizr.class.php

@@ -3405,7 +3405,7 @@ class Organizr
 				);
 				$PhpMailer->_phpMailerPluginSendEmail($sendEmail);
 			}
-			if ($this->createToken($username, $email, $this->gravatar($email), $this->config['rememberMeDays'])) {
+			if ($this->createToken($username, $this->gravatar($email), $this->config['rememberMeDays'])) {
 				$this->writeLoginLog($username, 'success');
 				$this->writeLog('success', 'Login Function - A User has logged in', $username);
 				return true;