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
2023-06-16 07:46:22 +07:00
committed by GitHub
parent 0b33ef0c2c
commit a0797a3a4c
6 changed files with 56 additions and 51 deletions

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}`, {