1.002_controller:
Map<String,Object> DeviceTokenResult= new HashMap<>(); DeviceTokenResult.put("email", mUserDao.selectById(result.getUserId()).getMailAddress()); DeviceTokenResult.put("token", tUserDevice.getTokkenAuthCd()) model.addAttribute("DeviceTokenValid", DeviceTokenResult);
<c:if test="${!empty DeviceTokenValid}"> (function(){ var jsonObj = localStorage.getItem('Device'); var jsObj = jsonObj ? JSON.parse(jsonObj) : {}; jsObj['${validatedToken.email.trim()}'] = '${validatedToken.token.trim()}'; localStorage.setItem('Device', JSON.stringify(jsObj)); }()); </c:if>
There was an error while loading. Please reload this page.