Smutty_Object
|
+--Smutty_Session_Abstract
|
+--Smutty_Session_Standard
public class Smutty_Session_Standard
extends Smutty_Session_Abstract
| Method Summary | |
|---|---|
| private static User | createUser(array hash) checks to see if there's a 'User' class to use for the user object, otherwise it uses the standard user session object |
| static Smutty_Session_User | getUser() this function tries to authenticate a user by standard username/password auth. |
| Methods inherited from Smutty.Smutty_Session_Abstract | |
|---|---|
| getUser | |
private static User createUser(array hash)
checks to see if there's a 'User' class to use for the user object, otherwise it uses the standard user session object
public static Smutty_Session_User getUser()
this function tries to authenticate a user by standard username/password auth. if it works then it'll return a new Smutty_Session_User object, otherwise it'll return false.
a class for authenticating users by "standard" database user/pass authentication. the fields can be customized by various values in your app.cfg
auth.standard.nameParam = form name param name auth.standard.passParam = form pass param name auth.standard.table = user table name auth.standard.idField = user table id field name auth.standard.nameField = user name field name auth.standard.passField = user pass field name auth.standard.passType = md5/plaintext auth.standard.emailField = user email field name
/