mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-28 17:01:16 +00:00
Revert inserting apikey into old behavior
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
2017-08-11 DariusIII
|
||||
* Chg: Revert inserting apikey into old behavior
|
||||
* Chg: Change the length of rsstoken (api key)
|
||||
* Chg: Remove duplicate zipfile.php
|
||||
* Chg: Add 2 more files originating from laravel installation(server.php for local dev web server used by laravel)
|
||||
|
||||
+2
-2
@@ -496,7 +496,7 @@ class Users
|
||||
*/
|
||||
public function updateRssKey($uid): int
|
||||
{
|
||||
User::query()->where('id', $uid)->update(['rsstoken' => Password::getRepository()->createNewToken()]);
|
||||
User::query()->where('id', $uid)->update(['rsstoken' => md5(Password::getRepository()->createNewToken())]);
|
||||
|
||||
return self::SUCCESS;
|
||||
}
|
||||
@@ -810,7 +810,7 @@ class Users
|
||||
sprintf('
|
||||
INSERT INTO users (username, password, email, role, createddate, host, rsstoken,
|
||||
invites, invitedby, userseed, notes)
|
||||
VALUES (%s, %s, LOWER(%s), %d, NOW(), %s, %s, %d, %s, MD5(%s), %s)',
|
||||
VALUES (%s, %s, LOWER(%s), %d, NOW(), %s, MD5(%s), %d, %s, MD5(%s), %s)',
|
||||
$this->pdo->escapeString($userName),
|
||||
$this->pdo->escapeString((string)$password),
|
||||
$this->pdo->escapeString($email),
|
||||
|
||||
Reference in New Issue
Block a user