Esempio n. 1
0
        /// <summary>
        /// Sample of sign up method.
        /// </summary>
        /// <param name="login">Login</param>
        /// <param name="password">Password</param>
        public static void SignUp(string login, string password)
        {
            var param = new AuthDto {
                email = login, password = password
            };

            HTTPController.JSONPost <RegistrationDto, AuthDto, RegistrationWorker>("auth/register", param);
        }
Esempio n. 2
0
        /// <summary>
        /// Sample of sign in method.
        /// </summary>
        /// <param name="login">Login</param>
        /// <param name="password">Password</param>
        public static void SignIn(string login, string password)
        {
            var param = new AuthDto {
                email = login, password = password
            };

            HTTPController.JSONPost <TokenDto, AuthDto, AuthWorker>("auth/login", param);
        }