mirror of https://gitlab.com/bashrc2/epicyon
Ensure that line endings are removed from password on account creation
parent
1544e526c4
commit
cb46a95593
|
@ -37,6 +37,7 @@ from roles import setRole
|
||||||
from roles import setRolesFromList
|
from roles import setRolesFromList
|
||||||
from roles import getActorRolesList
|
from roles import getActorRolesList
|
||||||
from media import processMetaData
|
from media import processMetaData
|
||||||
|
from utils import removeLineEndings
|
||||||
from utils import removeDomainPort
|
from utils import removeDomainPort
|
||||||
from utils import getStatusNumber
|
from utils import getStatusNumber
|
||||||
from utils import getFullDomain
|
from utils import getFullDomain
|
||||||
|
@ -396,6 +397,7 @@ def _createPersonBase(baseDir: str, nickname: str, domain: str, port: int,
|
||||||
print(publicKeyPem, file=text_file)
|
print(publicKeyPem, file=text_file)
|
||||||
|
|
||||||
if password:
|
if password:
|
||||||
|
password = removeLineEndings(password)
|
||||||
storeBasicCredentials(baseDir, nickname, password)
|
storeBasicCredentials(baseDir, nickname, password)
|
||||||
|
|
||||||
return privateKeyPem, publicKeyPem, newPerson, webfingerEndpoint
|
return privateKeyPem, publicKeyPem, newPerson, webfingerEndpoint
|
||||||
|
|
Loading…
Reference in New Issue