mirror of https://github.com/progval/irctest.git
strip whitespace from Ergo hashed password output (#198)
Removes the need for some special-casing in `ergo genpasswd`
This commit is contained in:
parent
6edf4e27f1
commit
3b7f81e22c
|
@ -126,7 +126,7 @@ def hash_password(password: Union[str, bytes]) -> str:
|
||||||
["ergo", "genpasswd"], stdin=subprocess.PIPE, stdout=subprocess.PIPE
|
["ergo", "genpasswd"], stdin=subprocess.PIPE, stdout=subprocess.PIPE
|
||||||
)
|
)
|
||||||
out, _ = p.communicate(input_)
|
out, _ = p.communicate(input_)
|
||||||
return out.decode("utf-8")
|
return out.decode("utf-8").strip()
|
||||||
|
|
||||||
|
|
||||||
class ErgoController(BaseServerController, DirectoryBasedController):
|
class ErgoController(BaseServerController, DirectoryBasedController):
|
||||||
|
|
Loading…
Reference in New Issue