252627282930313233343536
} @Transactional public Boolean add(UserCredentials user) { if (user != null) { Coding code = new Coding(); user.setPassword(code.getHash(user.getPassword())); if (userDao.add(new User(user)).getId() != 0) { return true; } }
4243444546474849
public eUser( String login, String pass ) { this.login = login; Coding coding = new Coding(); this.pass = coding.getHash(pass); }
495051525354555657
} public eUser( String login, String pass, String role ) { this.login = login; Coding coding = new Coding(); this.pass = coding.getHash(pass); this.role = role; }
394041424344454647484950
@Transactional public void addUser(mUserCredentials user) { if (user!=null) { Coding code = new Coding(); user.setPass( code.getHash(user.getPass()) ); eUser newUser = new eUser( user ); newUser = daoUser.Create( newUser ); }