public ActionResult Auth(GoogleOAuthAuthViewModel model)
 {
     var response = _oauthService.Auth(_services.WorkContext, model.Code, model.Error, model.State);
     if (response.Error != null)
     {
         _services.Notifier.Add(NotifyType.Error, response.Error);
     }
     
     return this.RedirectLocal(response.ReturnUrl);
 }
Exemple #2
0
        public ActionResult GoogleAuth(GoogleOAuthAuthViewModel model)
        {
            var response = _teeyootGoogleOAuthService.Auth(
                WorkContext,
                model.Code,
                model.Error,
                model.State);

            return Redirect(response.Error == null ? "~/" : "~/Login");
        }