Welcome Guest, Not a member yet? Register   Sign In
Fresh Powered - Auth Library
#53

[eluser]TWP Marketing[/eluser]
Adam, I found a couple of points in your Auth userguide that contradict each other:
emphasis mine.

In the Authentication Library Overview section it states:
--
...A good example of this is the login function. All you need to do to log a user in is use the function $this->auth->login() - you don't need to pass any parameters, because all login functions have a username field, and a password field. By cutting out the unnecessary, we will help you develop the core to your app, without having to worry about the menial tasks.
--

However, in the Usage Instructions section it states:
--
...Logging users in

There is only one function you need to run to log a user in, and only one parameter to pass.

Code:
$this->auth->login('user/login');

Here you can see how to log a user in. Unlike other libraries, you do not need to pass any data to the function, since everything is handled inside the function - plus you only need to pass a username and password to login. The first parameter is optional, and it is the URI to redirect to on a successful login.
--

Looking at the library login method there doesn't appear to be any parameters passed. so the second example above must be in error??
Could you clear this up for me and perhaps others?


Messages In This Thread
Fresh Powered - Auth Library - by El Forum - 11-02-2008, 10:26 AM
Fresh Powered - Auth Library - by El Forum - 11-03-2008, 11:50 AM
Fresh Powered - Auth Library - by El Forum - 11-03-2008, 04:41 PM
Fresh Powered - Auth Library - by El Forum - 11-03-2008, 05:14 PM
Fresh Powered - Auth Library - by El Forum - 11-03-2008, 05:48 PM
Fresh Powered - Auth Library - by El Forum - 11-03-2008, 05:53 PM
Fresh Powered - Auth Library - by El Forum - 11-03-2008, 07:19 PM
Fresh Powered - Auth Library - by El Forum - 11-06-2008, 10:34 AM
Fresh Powered - Auth Library - by El Forum - 11-07-2008, 02:48 PM
Fresh Powered - Auth Library - by El Forum - 11-07-2008, 02:51 PM
Fresh Powered - Auth Library - by El Forum - 11-07-2008, 02:55 PM
Fresh Powered - Auth Library - by El Forum - 11-07-2008, 03:07 PM
Fresh Powered - Auth Library - by El Forum - 11-09-2008, 07:56 AM
Fresh Powered - Auth Library - by El Forum - 11-09-2008, 08:01 AM
Fresh Powered - Auth Library - by El Forum - 11-09-2008, 08:09 AM
Fresh Powered - Auth Library - by El Forum - 11-09-2008, 08:16 AM
Fresh Powered - Auth Library - by El Forum - 11-09-2008, 11:24 AM
Fresh Powered - Auth Library - by El Forum - 11-09-2008, 11:30 AM
Fresh Powered - Auth Library - by El Forum - 11-09-2008, 12:57 PM
Fresh Powered - Auth Library - by El Forum - 11-09-2008, 01:03 PM
Fresh Powered - Auth Library - by El Forum - 11-14-2008, 06:47 AM
Fresh Powered - Auth Library - by El Forum - 11-14-2008, 08:16 AM
Fresh Powered - Auth Library - by El Forum - 11-16-2008, 12:40 PM
Fresh Powered - Auth Library - by El Forum - 11-16-2008, 04:30 PM
Fresh Powered - Auth Library - by El Forum - 11-21-2008, 07:05 AM
Fresh Powered - Auth Library - by El Forum - 11-21-2008, 07:38 AM
Fresh Powered - Auth Library - by El Forum - 11-21-2008, 07:46 AM
Fresh Powered - Auth Library - by El Forum - 11-21-2008, 07:54 AM
Fresh Powered - Auth Library - by El Forum - 11-21-2008, 08:13 AM
Fresh Powered - Auth Library - by El Forum - 11-21-2008, 10:32 AM
Fresh Powered - Auth Library - by El Forum - 11-21-2008, 10:36 AM
Fresh Powered - Auth Library - by El Forum - 11-21-2008, 10:40 AM
Fresh Powered - Auth Library - by El Forum - 11-21-2008, 10:52 AM
Fresh Powered - Auth Library - by El Forum - 11-21-2008, 11:55 AM
Fresh Powered - Auth Library - by El Forum - 11-21-2008, 12:02 PM
Fresh Powered - Auth Library - by El Forum - 11-21-2008, 01:46 PM
Fresh Powered - Auth Library - by El Forum - 11-21-2008, 01:50 PM
Fresh Powered - Auth Library - by El Forum - 11-21-2008, 01:57 PM
Fresh Powered - Auth Library - by El Forum - 11-21-2008, 02:34 PM
Fresh Powered - Auth Library - by El Forum - 11-21-2008, 02:49 PM
Fresh Powered - Auth Library - by El Forum - 11-21-2008, 03:00 PM
Fresh Powered - Auth Library - by El Forum - 11-21-2008, 09:39 PM
Fresh Powered - Auth Library - by El Forum - 11-22-2008, 05:09 AM
Fresh Powered - Auth Library - by El Forum - 11-26-2008, 03:53 PM
Fresh Powered - Auth Library - by El Forum - 11-26-2008, 04:09 PM
Fresh Powered - Auth Library - by El Forum - 11-26-2008, 04:15 PM
Fresh Powered - Auth Library - by El Forum - 11-26-2008, 04:19 PM
Fresh Powered - Auth Library - by El Forum - 11-26-2008, 04:28 PM
Fresh Powered - Auth Library - by El Forum - 12-03-2008, 01:37 PM
Fresh Powered - Auth Library - by El Forum - 12-03-2008, 01:46 PM
Fresh Powered - Auth Library - by El Forum - 12-03-2008, 03:46 PM
Fresh Powered - Auth Library - by El Forum - 12-03-2008, 04:14 PM
Fresh Powered - Auth Library - by El Forum - 12-19-2008, 05:10 PM
Fresh Powered - Auth Library - by El Forum - 12-19-2008, 06:26 PM
Fresh Powered - Auth Library - by El Forum - 02-10-2009, 02:54 AM
Fresh Powered - Auth Library - by El Forum - 02-24-2009, 12:38 PM
Fresh Powered - Auth Library - by El Forum - 04-21-2009, 02:43 PM
Fresh Powered - Auth Library - by El Forum - 04-21-2009, 02:59 PM
Fresh Powered - Auth Library - by El Forum - 04-21-2009, 03:07 PM
Fresh Powered - Auth Library - by El Forum - 04-22-2009, 10:14 AM
Fresh Powered - Auth Library - by El Forum - 04-22-2009, 12:34 PM



Theme © iAndrew 2016 - Forum software by © MyBB