⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 enable.java

📁 tbuy1.1.5是在netbeans环境下用JSF技术编写的一个论坛tbuy1.1.5是在netbeans环境下用JSF技术编写的一个论坛
💻 JAVA
字号:
/* * 作者: 胡李青 * qq: 31703299  * Copyright (c) 2007 huliqing * 主页 http://www.tbuy.biz/ * 你可以免费使用该软件,未经许可请勿作用于任何商业目的 */package biz.tbuy.user.bean;import biz.tbuy.common.Utils;import biz.tbuy.common.logs.Elog;import biz.tbuy.user.UserAction;import biz.tbuy.user.UserModel;/** * @author huliqing * <p><b>qq:</b>31703299 * <p><b>E-mail:</b><a href="mailto:huliqing.cn@gmail.com">huliqing.cn@gmail.com</a> * <p><b>Homepage:</b><a href="http://www.tbuy.biz/">http://www.tbuy.biz/</a> */public class Enable extends BaseBean{    private String _none;    // 无什么用处    /** Creates a new instance of Enable */    public Enable() {        UserModel user = null;        try {            String id = this.getParameter("i");            String password = this.getParameter("p");            user = UserAction.getUser(id, password);        } catch (Exception e) {            Elog.log("Exception:Enable:Enable:" + e.getMessage());        }        // 如果用户名及密码正确,则激活用户, 同时设置为登录状态,并重新载入系统用户信息        if (user != null) {            if (UserAction.enableUser(user.getId())) {                user.setEnabled(true);                getComApplication().getVisitorsOper().login(user, true);                getComApplication().reloadUserinfo();                Utils.addInfoMessage(getBundle(), "enable_enableSuccess");            }        } else {            Elog.log("Enable user id failure");        }    }        public void setNone(String none) {        _none = none;    }        public String getNone() {        return _none;    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -