This is the API documentation for concrete5 version 5.6 and earlier. View Current API Documentation

Class Concrete5_Model_UserValidationHash

Direct known subclasses


Methods summary

protected static string
# generate( )

generates a random string

# removeExpired( $type )

Removes old entries for the supplied type

public static string
# add( integer $uID, integer $type, $singeHashAllowed = false )

adds a hash to the lookup table for a user and type, removes any other existing hashes for the same user and type

public static integer
# getUserID( string $hash, integer $type )

gets the users id for a given hash and type