Ensure that line endings are removed from password on account creation

main
Bob Mottram 2021-07-20 17:09:58 +01:00
parent 1544e526c4
commit cb46a95593
1 changed files with 2 additions and 0 deletions

View File

@ -37,6 +37,7 @@ from roles import setRole
from roles import setRolesFromList
from roles import getActorRolesList
from media import processMetaData
from utils import removeLineEndings
from utils import removeDomainPort
from utils import getStatusNumber
from utils import getFullDomain
@ -396,6 +397,7 @@ def _createPersonBase(baseDir: str, nickname: str, domain: str, port: int,
print(publicKeyPem, file=text_file)
if password:
password = removeLineEndings(password)
storeBasicCredentials(baseDir, nickname, password)
return privateKeyPem, publicKeyPem, newPerson, webfingerEndpoint