Esempio n. 1
0
        public async Task<ActionResult> Signin(SignInViewModel model)
        {
            if (!ModelState.IsValid)
                return View(model);

            try
            {
                StartSession(model);
                await LoadProjects();
                return RedirectToAction("projects");
            }
            catch (Exception)
            {
                return Error(model);
            }
        }
Esempio n. 2
0
        private void StartSession(SignInViewModel model)
        {
            var session = new SkeletonSession
            {
                Url = model.Url,
                Username = model.Username,
                Password = model.Password,
                RememberMe = model.RememberMe
            };

            _provider.Session = session;
        }