Advertisement
Guest User

patch create wallet (save as .patch)

a guest
Jan 26th, 2017
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. Index: src/main/java/se/btcx/coinstack/web/controller/wallet/WalletController.java
  2. IDEA additional info:
  3. Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
  4. <+>UTF-8
  5. ===================================================================
  6. --- src/main/java/se/btcx/coinstack/web/controller/wallet/WalletController.java (revision 5ed016766786471725daa9db0177d64c586d5873)
  7. +++ src/main/java/se/btcx/coinstack/web/controller/wallet/WalletController.java (revision )
  8. @@ -155,8 +155,10 @@
  9. return "redirect:/protected/wallet";
  10. }
  11.  
  12. - User currentUser = SessionUtil.getUser(req);
  13. - Wallet wallet = walletService.getWallet(SessionUtil.getUser(req).getId());
  14. + Integer userId = SessionUtil.getUser(req).getId();
  15. + User currentUser = userService.findById(userId);
  16. + Wallet wallet = walletService.getWallet(userId);
  17. +
  18. Boolean errorDetected = false;
  19. if(wallet == null){
  20. String securePassword = SecureRandomGenerator.generateRandomPassword();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement