@Execute public HtmlResponse register(String account, String token) { // from mail link Member member = new Member(); member.setMemberAccount(account); member.setMemberStatusCode_Formalized(); memberBhv.update(member); return redirect(SigninAction.class); }
private void moreValidate(SignupForm form, OrleansMessages messages) { if (isNotEmpty(form.memberAccount)) { int count = memberBhv.selectCount( cb -> { cb.query().setMemberAccount_Equal(form.memberAccount); }); if (count > 0) { messages.addErrorsSignupAccountAlreadyExists("memberAccount"); } } }
// =================================================================================== // Assist Logic // ============ private Integer newMember(SignupForm form) { Member member = new Member(); member.setMemberName(form.memberName); member.setMemberAccount(form.memberAccount); member.setMemberStatusCode_Provisional(); memberBhv.insert(member); MemberSecurity security = new MemberSecurity(); security.setMemberId(member.getMemberId()); security.setLoginPassword(orleansLoginAssist.encryptPassword(form.password)); security.setReminderQuestion(form.reminderQuestion); security.setReminderAnswer(form.reminderAnswer); security.setReminderUseCount(0); memberSecurityBhv.insert(security); MemberService service = new MemberService(); service.setMemberId(member.getMemberId()); service.setServicePointCount(0); service.setServiceRankCode_Plastic(); memberServiceBhv.insert(service); return member.getMemberId(); }