move token index after adding password

This commit is contained in:
Pliable Pixels 2019-05-12 15:01:49 -04:00
parent 9a8aa5453b
commit cc0d23ce4e
1 changed files with 1 additions and 2 deletions

View File

@ -184,8 +184,7 @@ User *zmLoadTokenUser (std::string jwt_token_str, bool use_remote_addr ) {
MYSQL_ROW dbrow = mysql_fetch_row(result); MYSQL_ROW dbrow = mysql_fetch_row(result);
User *user = new User(dbrow); User *user = new User(dbrow);
Info ("DB 9=%s", dbrow[9]); unsigned int stored_iat = strtoul(dbrow[10], NULL,0 );
unsigned int stored_iat = strtoul(dbrow[9], NULL,0 );
if (stored_iat > iat ) { // admin revoked tokens if (stored_iat > iat ) { // admin revoked tokens
mysql_free_result(result); mysql_free_result(result);