encrypt client password and fix upgrade db script (#188)

* encrypt client password and fix upgrade db script

* encrypt client password and fix upgrade db script

* obfuscate client password
This commit is contained in:
Hoan Luu Huu authored and GitHub committed 2023-06-15 20:46:22 -04:00
1 parent 0b33ef0c2c
commit a0797a3a4c
6 files changed
+56 -51

No files matched your search

+2
View File
@@ -76,6 +76,7 @@ test('client test', async(t) => {
t.ok(result.client_sid, 'successfully retrieved Client by sid');
t.ok(result.username === 'client1', 'successfully retrieved Client by sid');
t.ok(result.is_active === 1 , 'successfully retrieved Client by sid');
t.ok(result.password === 'sXXXXXXX' , 'successfully retrieved Client by sid');
/* update the entity */
result = await request.put(`/Clients/${sid}`, {
@@ -93,6 +94,7 @@ test('client test', async(t) => {
json: true,
});
t.ok(result.is_active === 0 , 'successfully updated Client');
t.ok(result.password === 'sXXXXXXX' , 'successfully retrieved Client by sid');
/* delete Client */
result = await request.delete(`/Clients/${sid}`, {