Skip to content

Commit

Permalink
fix: user ERR NOAUTH in github action (#2962)
Browse files Browse the repository at this point in the history
* fix authrequired bug

* init pika.conf

* fix InitUser

* fix InitUser

* fix no userblacklist

* fix acl

* delete annotation

* fix bug
  • Loading branch information
buzhimingyonghu authored Dec 4, 2024
1 parent 7c155a5 commit 937ebde
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion conf/pika.conf
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ timeout : 60

# The [password of administrator], which is empty by default.
# [NOTICE] If this admin password is the same as user password (including both being empty),
# the value of userpass will be ignored and all users are considered as administrators,
# in this scenario, users are not subject to the restrictions imposed by the userblacklist.
# PS: "user password" refers to value of the parameter below: userpass.
requirepass :
Expand Down
6 changes: 1 addition & 5 deletions src/acl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -477,11 +477,7 @@ void Acl::UpdateDefaultUserPassword(const std::string& pass) {
if (pass.empty()) {
u->SetUser("nopass");
} else {
if (g_pika_conf->userpass().empty()) {
u->SetUser("nopass");
} else {
u->SetUser(">" + pass);
}
u->SetUser(">" + pass);
}
}

Expand Down

0 comments on commit 937ebde

Please sign in to comment.