mx.core.UIObject |
org.silex.core.Authentication |
This class is used to authenticate users it uses amfphp in the repository : /trunk/core/Authentication.as
1
Alexandre Hoyau
| org. | This class is used to authenticate users it uses amfphp in the repository : /trunk/core/Authentication.as |
| Variables | |
| silex_ptr | Reference to silex main Api object (org.silex.core.Api). |
| currentLogin | Store user login. |
| currentPassword | Store user password. |
| phpSessionTimerId | id of the timer used to keep php session active |
| Functions | |
| Authentication | Constructor. |
| isLoggedIn | Is the user logged in? |
| login | Login the user to allow access to administration functionalities. |
| wakeUpPhpSession | wake up php session |
| logout | Logout the user to prevent access to administration functionalities. |
function login( login_str: String, pass_str: String, callback/*: Function*/, rememberLogin/*: Boolean*/ )
Login the user to allow access to administration functionalities. Called by org.silex.core.Application loginCallback.
| param | login_str The login provided by the user |
| param | pass_str The password provided by the user |
| param | callback A callback function called when the operation is done. This function must have 1 parameter which is a boolean and has the value of the success state. |
Reference to silex main Api object (org.silex.core.Api).
private var silex_ptr: org.silex.core.Api
Store user login.
var currentLogin: String
Store user password.
var currentPassword: String
id of the timer used to keep php session active
var phpSessionTimerId: Number
Constructor.
function Authentication( api: org.silex.core.Api )
Is the user logged in?
function isLoggedIn():Boolean
Login the user to allow access to administration functionalities.
function login( login_str: String, pass_str: String, callback/*: Function*/, rememberLogin/*: Boolean*/ )
wake up php session
function wakeUpPhpSession()
Logout the user to prevent access to administration functionalities.
function logout( callback: Function )