コード例 #1
0
        public CommonDbResponse AssignRole(ChangePasswordCommon model)
        {
            CommonDbResponse r = new CommonDbResponse();
            // initialize api feature
            var sql = "Exec sproc_user_detail ";

            sql += " @flag='r'";
            sql += ", @user_id=" + dao.FilterString(model.UserName);
            sql += ", @role_id=" + dao.FilterString(model.RoleId);
            sql += ", @action_user = "******", @updated_ip=" + dao.FilterString(model.IpAddress);
            //sql += ", @actionbrowser=" + dao.FilterString(model.BrowserInfo);
            r = dao.ParseCommonDbResponse(sql);
            return(r);
        }
コード例 #2
0
        public CommonDbResponse ChangeUserPassword(ChangePasswordCommon model)
        {
            CommonDbResponse r = new CommonDbResponse();
            // initialize api feature
            var sql = "Exec sproc_user_detail ";

            sql += " @flag='changeuserpwd'";
            sql += ", @password="******", @confirm_password="******", @user_id=" + dao.FilterString(model.UserName);
            sql += ", @action_user = "******", @updated_ip=" + dao.FilterString(model.IpAddress);
            //sql += ", @actionbrowser=" + dao.FilterString(model.BrowserInfo);
            r = dao.ParseCommonDbResponse(sql);
            return(r);
        }
コード例 #3
0
 public CommonDbResponse ChangeUserPassword(ChangePasswordCommon model)
 {
     return(repo.ChangeUserPassword(model));
 }
コード例 #4
0
 public CommonDbResponse AssignRole(ChangePasswordCommon model)
 {
     return(repo.AssignRole(model));
 }