@@ -309,29 +309,24 @@ public ActionResult Login(LoginModel model, string returnUrl, bool captchaValid)
309309 _eventPublisher . Publish ( new CustomerLoggedinEvent ( customer ) ) ;
310310
311311 //activity log
312- _customerActivityService . InsertActivity ( "PublicStore.Login" ,
313- _localizationService . GetResource ( "ActivityLog.PublicStore.Login" ) , customer ) ;
312+ _customerActivityService . InsertActivity ( "PublicStore.Login" , _localizationService . GetResource ( "ActivityLog.PublicStore.Login" ) , customer ) ;
314313
315314 if ( String . IsNullOrEmpty ( returnUrl ) || ! Url . IsLocalUrl ( returnUrl ) )
316315 return RedirectToRoute ( "HomePage" ) ;
317316
318317 return Redirect ( returnUrl ) ;
319318 }
320319 case CustomerLoginResults . CustomerNotExist :
321- ModelState . AddModelError ( "" ,
322- _localizationService . GetResource ( "Account.Login.WrongCredentials.CustomerNotExist" ) ) ;
320+ ModelState . AddModelError ( "" , _localizationService . GetResource ( "Account.Login.WrongCredentials.CustomerNotExist" ) ) ;
323321 break ;
324322 case CustomerLoginResults . Deleted :
325- ModelState . AddModelError ( "" ,
326- _localizationService . GetResource ( "Account.Login.WrongCredentials.Deleted" ) ) ;
323+ ModelState . AddModelError ( "" , _localizationService . GetResource ( "Account.Login.WrongCredentials.Deleted" ) ) ;
327324 break ;
328325 case CustomerLoginResults . NotActive :
329- ModelState . AddModelError ( "" ,
330- _localizationService . GetResource ( "Account.Login.WrongCredentials.NotActive" ) ) ;
326+ ModelState . AddModelError ( "" , _localizationService . GetResource ( "Account.Login.WrongCredentials.NotActive" ) ) ;
331327 break ;
332328 case CustomerLoginResults . NotRegistered :
333- ModelState . AddModelError ( "" ,
334- _localizationService . GetResource ( "Account.Login.WrongCredentials.NotRegistered" ) ) ;
329+ ModelState . AddModelError ( "" , _localizationService . GetResource ( "Account.Login.WrongCredentials.NotRegistered" ) ) ;
335330 break ;
336331 case CustomerLoginResults . WrongPassword :
337332 default :
0 commit comments