Welcome Guest, Not a member yet? Register   Sign In
Simplifying the Login Library Function
#1

[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

#2

[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
#3

[eluser]xtremer360[/eluser]
Any opinions?
#4

[eluser]xtremer360[/eluser]
*bump*
#5

[eluser]xtremer360[/eluser]
*bump*




Theme © iAndrew 2016 - Forum software by © MyBB