Ejemplo n.º 1
0
        public async Task <bool> RegisterAsync(string username, string password)
        {
            var encryptedPassword = crypto.Encrypt(password);

            await authServiceClient.RegisterAsync(new UserModel { Email = username, Password = encryptedPassword });

            cachingService.Store("singupuser", new User {
                Email = username, Password = password
            });

            return(true);
        }