public IActionResult Unlock(string password)
        {
            var result = _userRepository.Exist(m =>
                                               m.Activable && m.SysUserName.Equals(User.Identity.Name, StringComparison.OrdinalIgnoreCase) &&
                                               m.SysPassword.Equals(password));

            return(Json(new { success = result }));
        }
 public IActionResult Init([FromServices] IOptions <CodeGenerateOption> options)
 {
     InitSysMenus(options.Value.ControllersNamespace);
     if (!userRepository.Exist(m => m.SysUserName.Equals("admin", StringComparison.OrdinalIgnoreCase) && m.Activable))
     {
         userRepository.Add(new SysUser()
         {
             SysUserName = "******",
             Activable   = true,
             EMail       = "*****@*****.**",
             SysPassword = "******",
             Telephone   = "13888888888"
         });
     }
     return(Ok());
 }