public class LoginAction extends BowBaseAction
| Modifier and Type | Field and Description |
|---|---|
protected String |
email |
protected String |
password |
config, CONTEXT_ACTION_KEY, first, fullTextLine, order, possibleOrder, session, tagLine, UNTRANSLATED_MARKER| Constructor and Description |
|---|
LoginAction() |
| Modifier and Type | Method and Description |
|---|---|
protected BowUser |
checkLogin(String email,
String password)
Check password in solr index, if fail try to check password admin in config file
|
String |
execute()
Authenticates the user if his email and password are valid
|
String |
getEmail() |
String |
getPassword() |
void |
setEmail(String email) |
void |
setPassword(String password) |
getBowProxy, getBowSession, getConfig, getFirst, getFullTextLine, getOrder, getPossibleOrder, getTagLine, setFirst, setFullTextLine, setOrder, setSession, setTagLineaddActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, doDefault, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getFormatted, getLocale, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, validatepublic String getEmail()
public void setEmail(String email)
public String getPassword()
public void setPassword(String password)
protected BowUser checkLogin(String email, String password)
email - non null et non vide emailpassword - non null et non vide emailpublic String execute()
execute in interface com.opensymphony.xwork2.Actionexecute in class com.opensymphony.xwork2.ActionSupportCopyright © 2010–2014 CodeLutin. All rights reserved.