Go through activiation even for admin accounts

Fixes an issue with accounts being locked after trying to activate it.

Addresses #330
This commit is contained in:
Sebastian Grewe 2013-07-15 09:05:44 +02:00
parent 0ede05a6fd
commit be9a8d3fda

View File

@ -421,7 +421,7 @@ class User {
* @param userID int User ID * @param userID int User ID
* return data array Database fields as used in SELECT * return data array Database fields as used in SELECT
**/ **/
public function getUserData($userID) { public function getUserData($userID) e
$this->debug->append("STA " . __METHOD__, 4); $this->debug->append("STA " . __METHOD__, 4);
$this->debug->append("Fetching user information for user id: $userID"); $this->debug->append("Fetching user information for user id: $userID");
$stmt = $this->mysqli->prepare(" $stmt = $this->mysqli->prepare("
@ -495,7 +495,6 @@ class User {
VALUES (?, ?, ?, ?, ?, ?) VALUES (?, ?, ?, ?, ?, ?)
"); ");
} else { } else {
$is_locked = 0;
$stmt = $this->mysqli->prepare(" $stmt = $this->mysqli->prepare("
INSERT INTO $this->table (username, pass, email, pin, api_key, is_admin, is_locked) INSERT INTO $this->table (username, pass, email, pin, api_key, is_admin, is_locked)
VALUES (?, ?, ?, ?, ?, 1, ?) VALUES (?, ?, ?, ?, ?, 1, ?)