From a356803594ab36fa69e7dbcbd79261d8b46f4262 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Sun, 12 Oct 2025 00:05:30 +0530 Subject: removed useless user fields and functions, added roles --- auth/auth.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'auth/auth.go') diff --git a/auth/auth.go b/auth/auth.go index 4ac6445..0b28b57 100644 --- a/auth/auth.go +++ b/auth/auth.go @@ -1,5 +1,5 @@ /* openbills - Server for web based Libre Billing Software - * Copyright (C) 2023 Vidhu Kant Sharma + * Copyright (C) 2023-2025 Vidhu Kant Sharma * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -23,7 +23,8 @@ import ( type AuthClaims struct { jwt.RegisteredClaims - UserID uint `json:"userid"` + UserID uint `json:"userid"` + Roles []string `json:"roles"` } type RefreshClaims struct { -- cgit v1.2.3