Skip to content

Commit 4d3a081

Browse files
committed
Minor formatting (no real changes)
1 parent 7dcb5a2 commit 4d3a081

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

src/Libraries/Nop.Services/Logging/CustomerActivityService.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,7 @@ public virtual ActivityLogType GetActivityTypeById(int activityLogTypeId)
195195
/// <param name="comment">The activity comment</param>
196196
/// <param name="commentParams">The activity comment parameters for string.Format() function.</param>
197197
/// <returns>Activity log item</returns>
198-
public virtual ActivityLog InsertActivity(string systemKeyword,
199-
string comment, params object[] commentParams)
198+
public virtual ActivityLog InsertActivity(string systemKeyword, string comment, params object[] commentParams)
200199
{
201200
return InsertActivity(_workContext.CurrentCustomer, systemKeyword, comment, commentParams);
202201
}

src/Presentation/Nop.Web/Controllers/CustomerController.cs

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)