>107. public String login() { 108. if (((String) ServletActionContext.getRequest().getSession() 109. .getAttribute("checkcode")).equalsIgnoreCase(acode)) { 110. Member user = memberService.login(member.getEmail(), 111. member.getPass()); 112. 113. if (user == null) { 114. ServletActionContext.getRequest() 115. .setAttribute("login", "error"); 116. return "loginerror"; 117. } else { 118. ServletActionContext.getRequest().getSession() 119. .setAttribute("user", user); 120. return "login"; 121. } 122. } else { 123. ServletActionContext.getRequest().getSession() 124. .setAttribute("login", "acerror"); 125. return "loginerror"; 126. } 127. 128. } 129. 130. public String checkAcodet() { 131. if (((String) ServletActionContext.getRequest().getSession() 132. .getAttribute("checkcode")).equalsIgnoreCase(acodet)) { 133. cacodet = true; 134. } else { 135. cacodet = false;
上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] ... 下一页 >>
|