Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: src/main/java/se/btcx/coinstack/web/controller/wallet/WalletController.java
- IDEA additional info:
- Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
- <+>UTF-8
- ===================================================================
- --- src/main/java/se/btcx/coinstack/web/controller/wallet/WalletController.java (revision 5ed016766786471725daa9db0177d64c586d5873)
- +++ src/main/java/se/btcx/coinstack/web/controller/wallet/WalletController.java (revision )
- @@ -155,8 +155,10 @@
- return "redirect:/protected/wallet";
- }
- - User currentUser = SessionUtil.getUser(req);
- - Wallet wallet = walletService.getWallet(SessionUtil.getUser(req).getId());
- + Integer userId = SessionUtil.getUser(req).getId();
- + User currentUser = userService.findById(userId);
- + Wallet wallet = walletService.getWallet(userId);
- +
- Boolean errorDetected = false;
- if(wallet == null){
- String securePassword = SecureRandomGenerator.generateRandomPassword();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement