Merge pull request #644 from fengzeroz/main

Revert "change default password"
This commit is contained in:
fengzeroz
2022-07-15 10:07:13 +08:00
committed by GitHub
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -7,11 +7,11 @@ Suite Teardown Stop Neuronx
*** Test Cases ***
login with invalid username and password, it should return failure
POST /api/v2/login {"name":"admin1", "pass": "Lrlq6si6%GUvok$B"}
POST /api/v2/login {"name":"admin1", "pass": "0000"}
Integer response status 401
Integer $.error ${NEU_ERR_INVALID_USER_OR_PASSWORD}
login with username and password, it should return success
POST /api/v2/login {"name":"admin", "pass": "Lrlq6si6%GUvok$B"}
POST /api/v2/login {"name":"admin", "pass": "0000"}
Integer response status 200
output $.token
+1 -1
View File
@@ -53,7 +53,7 @@ Check Response Status
Integer response status ${status}
LOGIN
POST /api/v2/login {"name": "admin", "pass":"Lrlq6si6%GUvok$B"}
POST /api/v2/login {"name": "admin", "pass":"0000"}
Integer response status 200
+1 -1
View File
@@ -50,7 +50,7 @@ void handle_login(nng_aio *aio)
aio, neu_json_login_req_t, neu_json_decode_login_req, {
neu_json_login_resp_t login_resp = { 0 };
char * name = "admin";
char * password = "Lrlq6si6%GUvok$B";
char * password = "0000";
if (strcmp(req->name, name) == 0 &&
strcmp(req->pass, password) == 0) {