예제 #1
0
 @Override
 protected void doOKAction() {
   AuthDataHolder authData = myLoginPanel.getAuthData();
   final boolean success = EduStepicConnector.login(authData.email, authData.password);
   if (!success) {
     setErrorText("Login failed");
   } else {
     StudySettings.getInstance().setLogin(authData.email);
     StudySettings.getInstance().setPassword(authData.password);
     super.doOKAction();
   }
 }
예제 #2
0
 @Override
 protected void doAction(ActionEvent e) {
   EduStepicConnector.createUser(
       myLoginPanel.getAuthData().email, myLoginPanel.getAuthData().password);
   doOKAction();
 }