コード例 #1
0
ファイル: UserLocal.cs プロジェクト: dmitrydnl/StashBot
        public void Login(string password)
        {
            if (string.IsNullOrEmpty(password))
            {
                throw new ArgumentException("Password cannot be null");
            }

            ISecureManager secureManager = ModulesManager.GetSecureManager();

            EncryptedPassword = secureManager.EncryptWithAes(password);
            IsAuthorized      = true;
        }