Simplifying the Login Library Function |
[eluser]xtremer360[/eluser]
I'm trying to figure out a better way to write the login function. The overall function needs to be returning TRUE or FALSE but there's times where I need to do something with the user_data to return so I'm wondering if I need to simply the function more or how this should be accomplished. Controller http://pastebin.com/rkPLnYx6 Library Functions http://pastebin.com/RYwpZL9g
[eluser]xtremer360[/eluser]
Here's an update of the code since I still can't figure out how to better write the logic. I'm also trying to make sure I cover my basis for every test that may or may not return results. http://pastebin.com/T2AgFQHE
|
Welcome Guest, Not a member yet? Register Sign In |