Browse Source

return current token from /me endpoint

tags/v1.3.2
Jonathan Cobb 4 years ago
parent
commit
c21aa7343c
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      bubble-server/src/main/java/bubble/resources/account/MeResource.java

+ 3
- 1
bubble-server/src/main/java/bubble/resources/account/MeResource.java View File

@@ -99,7 +99,9 @@ public class MeResource {
reportError("MeResource.me: account in session but not in DB: "+account.getName()+"/"+account.getUuid());
return unauthorized();
}
return ok(acct.setPolicy(policyDAO.findSingleByAccount(account.getUuid())));
return ok(acct
.setPolicy(policyDAO.findSingleByAccount(account.getUuid()))
.setToken(account.getToken()));
} catch (Exception e) {
return notFound();
}


Loading…
Cancel
Save