Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
I'll change the name of the validator class to Database to make it easier for people to relate to it but I'll leave the validator class in the preload so other solutions still pass and I'll update the description appropriatly. Hopefully this will clear everything up with everyone.
Hi Matt,
The description of the validator class was a little bit confusing - changing the description would definiately help.
Thanks
The "h4x0r" and "Admin" tests will fail after they are passed throuh the validator classes method login, This is what you must return if no injexted code is found.
It should only fail after it is passed into the validator class
Now I think the whole validator class just confuses everyone.. Think of it like this, there is a web interface the username and password are passed to your function you must filter out any passwords that try to inject code and then pass it to the Validator class which essentially does a check on an array to see if the password matches the given username. I now believe theres no need for the validator class because it just confuses everyone, I could change the kata to fix this but also it would cause a lot of invalid solutions. I'll touch up the description to hopefully help though
the kata took me 30 minutes because of this error :(
In python the validator.login() function does not return True or False it returns one of two stings:
'Successfully Logged in!' or 'Wrong username or password!'
Changing the preload section to reflect this would be useful.
Also the following sentences in the Preload section does not make sense:
"This will be used to check if the username and password exist but only check if the password is valid."
Does the Validator function check if the username and password exist or only check if the password is valid? The but causes confusion.
Thanks for the kata.
I'm not sure if this kata should be marked as 8kyu, this is definitely 7kyu or up :)
Ruby, darling
Why should the h4xOr case fail?