25.08.2017, 14:34
Just for people willing to do a little editing:
It is very inefficient to be making a query call every login attempt. You should make one query call to grab the data and store it in a variable and then just keep comparing it against it.
They still don't need to insert / update thew database after every failed attempt, you can just do it in one go after they leave. (This is if you also want to add/track a users login attempts)
Also your using 256 cells for every query call, which some don't take up even close to that much. I would respect you more as an author if you at least considered making your code efficient. (People who copy/learn from your code will at least be better off if they saw efficient code)
I'm not here to tell you off, so I will end this by saying "Nice Work".
It is very inefficient to be making a query call every login attempt. You should make one query call to grab the data and store it in a variable and then just keep comparing it against it.
They still don't need to insert / update thew database after every failed attempt, you can just do it in one go after they leave. (This is if you also want to add/track a users login attempts)
Also your using 256 cells for every query call, which some don't take up even close to that much. I would respect you more as an author if you at least considered making your code efficient. (People who copy/learn from your code will at least be better off if they saw efficient code)
I'm not here to tell you off, so I will end this by saying "Nice Work".