Package wbbs.domain

Examples of wbbs.domain.User


        return new TemplateResult(this);
    }

    @Action(".do")
    public Object execute(String id, String pwd) throws SQLException {
        User user = userService.findUser(id);
        notNull(user, "用户名错误");
        byte[] md5 = Utils.md5(pwd);
        affirm(Arrays.equals(md5, user.pwd), "密码错误");
        loginService.setLoginUserId(id);
        return ok();
View Full Code Here


    public Object html(String id) throws SQLException {

        ensureLoginPage();

        if (id == null) {
            user = new User();
        } else {
            user = userService.findUser(id);
            if (user == null) {
                return new ErrorResult(404);
            }
View Full Code Here

        ensureLoginAction();

        range(id(notNull(user.id)), 2, 12);
        user.name = range(notNull(trim(user.name)), 1, 32);
        if (!create && pwd.isEmpty()) {
            User u = userService.findUser(user.id);
            notNull(u, "用户不存在");
            user.pwd = u.pwd;
        } else {
            range(notNull(pwd), 6, 15);
            user.pwd = Utils.md5(pwd);
View Full Code Here

TOP

Related Classes of wbbs.domain.User

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.