mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2025-12-26 12:50:46 -08:00
Issue 3015 - store timestamp when password is reset (#3863)
* Added few unsigned to ints in order to get rid of warnings. Added column to users table, for when password is changed(issue#3015). Moved password length check to separate method, to make it cleaner. * Added migration file and changed schema version to 27 due to servatrice.sql schema modification. * Make password length configurable.
This commit is contained in:
@@ -62,7 +62,7 @@ double Expression::eval(const peg::Ast &ast)
|
||||
return value;
|
||||
} else if (ast.name[0] == 'P') {
|
||||
double result = eval(*nodes[0]);
|
||||
for (int i = 1; i < nodes.size(); i += 2) {
|
||||
for (unsigned int i = 1; i < nodes.size(); i += 2) {
|
||||
double arg = eval(*nodes[i + 1]);
|
||||
char operation = nodes[i]->token[0];
|
||||
switch (operation) {
|
||||
|
||||
Reference in New Issue
Block a user