Api/v2 #111

Merged
KevinMidboe merged 88 commits from api/v2 into master 2019-11-04 17:01:16 +00:00
Showing only changes of commit 144b27f128 - Show all commits

View File

@@ -13,9 +13,9 @@ class Token {
* @returns {String}
*/
toString(secret) {
const user = this.user.username;
const username = this.user.username;
const admin = this.admin;
let data = { user }
let data = { username }
if (admin)
data = { ...data, admin }