일단 이제 잘 됨
This commit is contained in:
@@ -253,7 +253,7 @@ func handleLogin(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
// htpasswd -v <file> <username> <password> 명령어를 사용하여 비밀번호 확인
|
||||
// exit code 0이면 성공, 0이 아니면 실패
|
||||
cmd := exec.Command("htpasswd", "-v", htpasswdPath, req.Username, req.Password)
|
||||
cmd := exec.Command("htpasswd", "-vb", htpasswdPath, req.Username, req.Password)
|
||||
output, err := cmd.CombinedOutput()
|
||||
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user