Advertisement
Guest User

Untitled

a guest
Apr 10th, 2017
557
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1. public ActionResult LoginBalieUser(LoginModel model)
  2. {
  3. var salesAgent = CommerceFramework.ShopAccounts.GetShopAccount(Guid.Parse("3E90BB13-36BA-435D-8ED7-E930A4F8C758"), true);
  4. model.Password = "EielKrkK4Gh5T95aUfY149YtbaFXEia7dAjTP0IyWaY=";
  5.  
  6. if (model.UserName == "info@verploegen.nl")
  7. {
  8.  
  9. if (model.UserName == "info@verploegen.nl" && model.Password == "EielKrkK4Gh5T95aUfY149YtbaFXEia7dAjTP0IyWaY=")
  10. {
  11.  
  12.  
  13.  
  14. if (!ModelState.IsValid)
  15. return View(model);
  16. }
  17. if (!ShopApi.UserState.Login(model.UserName, model.Password, model.RememberMe))
  18. {
  19. ModelState.AddModelError("", "");
  20. return View(model);
  21. }
  22.  
  23. }
  24.  
  25.  
  26.  
  27. return RedirectToAction("Login", "Profile");
  28. }
  29.  
  30. if (!ModelState.IsValid)
  31.  
  32. <FieldsDictionary>
  33. <field name="Password" type="System.String, mscorlib">
  34. <string>EielKrkK4Gh5T95aUfY149YtbaFXEia7dAjTP0IyWaY=</string>
  35. </field>
  36. <field name="Salt" type="System.String, mscorlib">
  37. <string>vn73BOyHEIzE/SxFxYrCSA==</string>
  38. </field>
  39. <field name="AccountDisplayName" type="Null" />
  40. <field name="CanOrderProducts" type="System.Boolean, mscorlib">
  41. <boolean>true</boolean>
  42. </field>
  43. <field name="CanSeePrices" type="System.Boolean, mscorlib">
  44. <boolean>true</boolean>
  45. </field>
  46. <field name="CanSeeStock" type="System.Boolean, mscorlib">
  47. <boolean>true</boolean>
  48. </field>
  49. <field name="HasLimitedBudget" type="System.Boolean, mscorlib">
  50. <boolean>false</boolean>
  51. </field>
  52. </FieldsDictionary>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement