mirror of https://gitlab.com/bashrc2/epicyon
Snake case
parent
cd5a897184
commit
a711a29dbd
|
@ -253,7 +253,7 @@ from utils import replace_users_with_at
|
|||
from utils import local_actor_url
|
||||
from utils import is_float
|
||||
from utils import valid_password
|
||||
from utils import removeLineEndings
|
||||
from utils import remove_line_endings
|
||||
from utils import get_base_content_from_post
|
||||
from utils import acct_dir
|
||||
from utils import getImageExtensionFromMimeType
|
||||
|
@ -4968,9 +4968,9 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
if fields.get('password') and \
|
||||
fields.get('passwordconfirm'):
|
||||
fields['password'] = \
|
||||
removeLineEndings(fields['password'])
|
||||
remove_line_endings(fields['password'])
|
||||
fields['passwordconfirm'] = \
|
||||
removeLineEndings(fields['passwordconfirm'])
|
||||
remove_line_endings(fields['passwordconfirm'])
|
||||
if valid_password(fields['password']) and \
|
||||
fields['password'] == fields['passwordconfirm']:
|
||||
# set password
|
||||
|
|
|
@ -41,7 +41,7 @@ from media import processMetaData
|
|||
from utils import removeHtml
|
||||
from utils import containsInvalidChars
|
||||
from utils import replace_users_with_at
|
||||
from utils import removeLineEndings
|
||||
from utils import remove_line_endings
|
||||
from utils import removeDomainPort
|
||||
from utils import getStatusNumber
|
||||
from utils import get_full_domain
|
||||
|
@ -533,7 +533,7 @@ def _createPersonBase(base_dir: str, nickname: str, domain: str, port: int,
|
|||
print('EX: unable to save 2 ' + filename)
|
||||
|
||||
if password:
|
||||
password = removeLineEndings(password)
|
||||
password = remove_line_endings(password)
|
||||
storeBasicCredentials(base_dir, nickname, password)
|
||||
|
||||
return privateKeyPem, publicKeyPem, newPerson, webfingerEndpoint
|
||||
|
|
Loading…
Reference in New Issue