mirror of https://gitlab.com/bashrc2/epicyon
Debug for welcome buttons
parent
f59b5f48d7
commit
4545145a9c
14
daemon.py
14
daemon.py
|
@ -5006,6 +5006,20 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
self._postToOutbox(updateActorJson,
|
||||
__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
|
||||
if fields.get('deactivateThisAccount'):
|
||||
if fields['deactivateThisAccount'] == 'on':
|
||||
|
|
|
@ -64,7 +64,7 @@ def htmlWelcomeProfile(baseDir: str, nickname: str, domain: str,
|
|||
profileForm += \
|
||||
'<form enctype="multipart/form-data" method="POST" ' + \
|
||||
'accept-charset="UTF-8" ' + \
|
||||
'action="/users/' + nickname + '/welcomeprofile">\n'
|
||||
'action="/users/' + nickname + '/profiledata">\n'
|
||||
profileForm += '<div class="container">\n'
|
||||
profileForm += ' <center>\n'
|
||||
profileForm += ' <img class="welcomeavatar" src="'
|
||||
|
|
Loading…
Reference in New Issue