Esempio n. 1
0
        /// <summary>
        /// 获取最新的登陆记录
        /// </summary>
        /// <param name="id"></param>
        public IActionResult OnGetLoginLog(Guid id, int draw)
        {
            var list = _sysUserLoginService.GetLastUserLogins(id);
            DatatableModel <Sys_UserLoginMapping> data = new DatatableModel <Sys_UserLoginMapping>(list);

            data.draw = draw;
            return(Json(data));
        }
Esempio n. 2
0
        public IActionResult ProfileIndex()
        {
            ProfileModel model = new ProfileModel();

            model.User = _sysUserService.GetUserMapping(UserId);
            model.ChangePassword.Salt        = model.User.salt;
            model.ChangePassword.OldPassword = model.User.password;
            model.LoginLogList = _sysUserLoginService.GetLastUserLogins(UserId);
            return(View(model));
        }