Package org.hfuu.uaadac.domain

Examples of org.hfuu.uaadac.domain.Account


      HttpSession session, HttpServletResponse resp) {
    // cookie 存在,则直接登录完成
    if (!"".equals(accountId)) {
      accountId = CipherHelper.decrypt(accountId.getBytes(Charsets.UTF_8));
     
      Account account = accountService.getAccount(Long.getLong(accountId));
      if (null != account) {
        OnlineAccount onlineAccount = new OnlineAccount();
        onlineAccount.setAccount(account.getAccounts());
        onlineAccount.setAccountId(account.getId());
        onlineAccount.setSessionId(session.getId());
        onlineAccount.setAccountStatus(true);
       
        onlineAccountService.addOnlineAccount(onlineAccount);
       
View Full Code Here


      HttpServletRequest req, HttpServletResponse resp, Model model) {
    // TODO 验证用户存在并添加cookie和重定向到指定页面
    HttpSession session = req.getSession();
    if (!"".equals(username)) {
     
      Account account = accountService.findAccount(username);
      if (null != account && password.equals(account.getPassword())) {
       
        OnlineAccount onlineAccount = new OnlineAccount();
        onlineAccount.setAccount(account.getAccounts());
        onlineAccount.setAccountId(account.getId());
        onlineAccount.setSessionId(session.getId());
        onlineAccount.setAccountStatus(true);
       
        onlineAccountService.addOnlineAccount(onlineAccount);
View Full Code Here

TOP

Related Classes of org.hfuu.uaadac.domain.Account

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.