Przeglądaj źródła

return current token from /me endpoint

tags/v1.3.2
Jonathan Cobb 4 lat temu
rodzic
commit
c21aa7343c
1 zmienionych plików z 3 dodań i 1 usunięć
  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 Wyświetl plik

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


Ładowanie…
Anuluj
Zapisz