Smutty


Smutty.Smutty_Session_Standard

Class Smutty_Session_Standard

Smutty_Object
|
+--Smutty_Session_Abstract
|
+--Smutty_Session_Standard

public class Smutty_Session_Standard
extends Smutty_Session_Abstract

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

/


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

Method Detail

createUser

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

Parameters:
hash - assoc array of args
Returns:
the user object
Go to code

getUser

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.

Returns:
the current user
Go to code

Smutty