Exemplo n.º 1
0
 private void btnDecrypt_Click(object sender, EventArgs e)
 {
     try
     {
         txtClear2.Text = Cryptology.Decrypt(txtEnc2.Text.Trim());
     }
     catch (Exception ex)
     {
         txtClear2.Text = "Hata :" + ex.Message;
     }
 }
Exemplo n.º 2
0
        public IActionResult ChangePassword(string passwordtoken)
        {
            var instance = _userPasswordChangeService.GetById(Convert.ToInt32(Cryptology.Decrypt(passwordtoken)));

            if (instance != null && instance.Status == false)
            {
                var model = new UserForChangePassword
                {
                    Id               = instance.Id,
                    Email            = _userService.GetById(instance.UserId).Email,
                    NewPassword      = "",
                    NewPasswordAgain = ""
                };
                return(View(model));
            }

            return(NotFound());
        }
Exemplo n.º 3
0
 public IProjenFrameworkContext() : base(Cryptology.Decrypt(ConfigurationManager.ConnectionStrings["IProjenFrameworkContext"].ConnectionString))
 {
     Database.SetInitializer(new MigrateDatabaseToLatestVersion <IProjenFrameworkContext, IProjenFramework.DataAccess.Migrations.Configuration>(true));
     this.Database.CommandTimeout            = 600;
     base.Configuration.ProxyCreationEnabled = false;
 }