Yury Gargay
32880c56a4
Implement SQLite Store using gorm and relational approach ( #1065 )
...
Restructure data handling for improved performance and flexibility.
Introduce 'G'-prefixed fields to represent Gorm relations, simplifying resource management.
Eliminate complexity in lookup tables for enhanced query and write speed.
Enable independent operations on data structures, requiring adjustments in the Store interface and Account Manager.
2023-10-12 15:42:36 +02:00
Yury Gargay
e586eca16c
Improve account copying ( #1069 )
...
With this fix, all nested slices and pointers will be copied by value.
Also, this fixes tests to compare the original and copy account by their
values by marshaling them to JSON strings.
Before that, they were copying the pointers that also passed the simple `=` compassion
(as the addresses match).
2023-08-22 17:56:39 +02:00
Pascal Fischer
873abc43bf
move into separate package
2023-05-16 12:57:56 +02:00
Pascal Fischer
2fef52b856
remove dependency to external base62 package and create own methods in utils
2023-05-16 12:44:26 +02:00
Pascal Fischer
b05e30ac5a
do not use UTC for time to stay consistent
2023-04-03 12:44:55 +02:00
Pascal Fischer
3bab745142
last_used can be nil
2023-03-29 17:46:09 +02:00
Pascal Fischer
c5942e6b33
store hashed token base64 encoded
2023-03-29 15:21:53 +02:00
Pascal Fischer
514403db37
use object instead of plain token for create response + handler test
2023-03-28 14:47:15 +02:00
Pascal Fischer
c65a934107
refactor to use name instead of description
2023-03-27 16:28:49 +02:00
Pascal Fischer
b852198f67
codacy and lint hints
2023-03-20 11:44:12 +01:00
Pascal Fischer
628a201e31
fix PAT array split
2023-03-16 16:59:32 +01:00
Pascal Fischer
b8cab2882b
storing and retrieving PATs
2023-03-16 15:57:44 +01:00
Pascal Fischer
c4d9b76634
add comment for exported const
2023-03-08 12:09:22 +01:00
Pascal Fischer
b4bb5c6bb8
use const and do array copy
2023-03-08 11:54:10 +01:00
Pascal Fischer
2b1965c941
switch secret generation to use lib
2023-03-08 11:36:03 +01:00
Pascal Fischer
83e7e30218
store hashedToken as string
2023-03-08 11:30:09 +01:00
Pascal Fischer
ed470d7dbe
add comments for exported functions
2023-03-06 14:46:04 +01:00
Pascal Fischer
bcac5f7b32
fixed some namings
2023-03-06 13:51:32 +01:00
Pascal Fischer
95d87384ab
fixed some namings
2023-03-06 13:49:07 +01:00
Pascal Fischer
2f2d45de9e
updated PAT struct to only use user id instead of user
2023-03-03 16:37:39 +01:00
Pascal Fischer
b3f339c753
improved code for token checksum calc
2023-03-03 14:51:33 +01:00
Pascal Fischer
e0fc779f58
add id to the PAT
2023-03-02 16:19:31 +01:00
Pascal Fischer
69be2a8071
add generating token (only frame for now, actual token is only dummy)
2023-03-01 20:12:04 +01:00