Пример #1
0
 /** Created by gac on 8-8-2016. Backdoor */
 @Override
 protected void onConfirm() {
   String password = getPassField().getValue();
   if (password.equals(WamUI.BACKDOOR)) {
     user = new Utente("developer", password);
     LibSession.setDeveloper(true);
     super.onConfirm();
   } else {
     LibSession.setDeveloper(false);
     super.onConfirm();
   }
 } // end of method
Пример #2
0
 @Override
 protected void init() {
   super.init();
   WamCompany company = (WamCompany) CompanySessionLib.getCompany();
   if (company != null) {
     if (company.getCompanyCode().equals(WAMApp.DEMO_COMPANY_CODE)) {
       addComponent(new Label("Password per Volontario = volontario"));
     } // end of if cycle
   } // end of if cycle
 }