Debug for welcome buttons

main
Bob Mottram 2021-02-25 14:53:19 +00:00
parent f59b5f48d7
commit 4545145a9c
2 changed files with 15 additions and 1 deletions

View File

@ -5006,6 +5006,20 @@ class PubServer(BaseHTTPRequestHandler):
self._postToOutbox(updateActorJson, self._postToOutbox(updateActorJson,
__version__, nickname) __version__, nickname)
# preview avatar button on welcome profile screen
if fields.get('previewAvatar'):
print('previewAvatar: ' + str(fields['previewAvatar']))
# prev button on welcome profile screen
if fields.get('prevWelcomeScreen'):
print('prevWelcomeScreen: ' +
str(fields['prevWelcomeScreen']))
# next button on welcome profile screen
if fields.get('nextWelcomeScreen'):
print('nextWelcomeScreen: ' +
str(fields['nextWelcomeScreen']))
# deactivate the account # deactivate the account
if fields.get('deactivateThisAccount'): if fields.get('deactivateThisAccount'):
if fields['deactivateThisAccount'] == 'on': if fields['deactivateThisAccount'] == 'on':

View File

@ -64,7 +64,7 @@ def htmlWelcomeProfile(baseDir: str, nickname: str, domain: str,
profileForm += \ profileForm += \
'<form enctype="multipart/form-data" method="POST" ' + \ '<form enctype="multipart/form-data" method="POST" ' + \
'accept-charset="UTF-8" ' + \ 'accept-charset="UTF-8" ' + \
'action="/users/' + nickname + '/welcomeprofile">\n' 'action="/users/' + nickname + '/profiledata">\n'
profileForm += '<div class="container">\n' profileForm += '<div class="container">\n'
profileForm += ' <center>\n' profileForm += ' <center>\n'
profileForm += ' <img class="welcomeavatar" src="' profileForm += ' <img class="welcomeavatar" src="'