BrightSide Workbench Full Report + Source Code
org.turro.auth.PasswordControl Class Reference
Inheritance diagram for org.turro.auth.PasswordControl:
Collaboration diagram for org.turro.auth.PasswordControl:

Public Member Functions

void onChangingPassword (InputEvent evt) throws IOException
 
void onChange ()
 
void doFinally ()
 
- Public Member Functions inherited from org.turro.elephant.TemplateControl
void setRootTmpl (String rootTmpl)
 
void setTmpl (String tmpl)
 
void afterCompose ()
 

Additional Inherited Members

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 43 of file PasswordControl.java.

Member Function Documentation

◆ doFinally()

void org.turro.auth.PasswordControl.doFinally ( )

Reimplemented from org.turro.elephant.TemplateControl.

Definition at line 77 of file PasswordControl.java.

77  {
78  redir = Executions.getCurrent().getParameter("redir");
79  if(Strings.isBlank(redir)) {
80  redir = ElContext.extractPath(ZkossElephant.getCurrent().getHttpServletRequest().getServletPath());
81  }
82  }
Here is the call graph for this function:

◆ onChange()

void org.turro.auth.PasswordControl.onChange ( )

Definition at line 62 of file PasswordControl.java.

62  {
63  if(!Strings.isBlank(password.getValue()) && password.getValue().equals(repeatpass.getValue())) {
64  IContact contact = Authentication.getIContact();
65  contact.setPassword(password.getText(), repeatpass.getText());
66  contact.applyChanges();
67  if(!SSO.hasSSO() && "true".equals(ZkossElephant.getCookieValue("xp_storepass"))) {
68  ZkossElephant.encryptCookie("xp_pass", password.getText(), "/", 365*24*60*60);
69  }
70  Application.getApplication().sendRedirect("/user");
71  } else {
72  Clients.showNotification(I_.get("Values had to be equal"));
73  }
74  }
Here is the call graph for this function:

◆ onChangingPassword()

void org.turro.auth.PasswordControl.onChangingPassword ( InputEvent  evt) throws IOException

Definition at line 57 of file PasswordControl.java.

57  {
58  strength.setValue(PasswordStrength.checkStrength(evt.getValue()));
59  }

The documentation for this class was generated from the following file: