mirror of https://gitlab.com/bashrc2/epicyon
Change password on edit profile screen
parent
026e80c659
commit
e08e12de1f
|
@ -65,6 +65,7 @@ from auth import authorize
|
|||
from auth import createPassword
|
||||
from auth import createBasicAuthHeader
|
||||
from auth import authorizeBasic
|
||||
from auth import storeBasicCredentials
|
||||
from threads import threadWithTrace
|
||||
from threads import removeDormantThreads
|
||||
from media import getMediaPath
|
||||
|
@ -3139,7 +3140,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
print('profile update POST '+mType+' image saved to '+postImageFilename)
|
||||
actorChanged=True
|
||||
else:
|
||||
print('ERROR: profile update POST '+mType+' image could not be saved to '+postImageFilename)
|
||||
print('ERROR: profile update POST '+mType+' image could not be saved to '+postImageFilename)
|
||||
|
||||
fields=extractTextFieldsInPOST(postBytes,boundary,self.server.debug)
|
||||
if self.server.debug:
|
||||
|
@ -3175,6 +3176,12 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
if len(actorJson['skills'].items())!=len(newSkills.items()):
|
||||
actorChanged=True
|
||||
actorJson['skills']=newSkills
|
||||
if fields.get('password'):
|
||||
if fields.get('passwordconfirm'):
|
||||
if actorJson['password']==fields['passwordconfirm']:
|
||||
if len(actorJson['password'])>2:
|
||||
# set password
|
||||
storeBasicCredentials(self.server.baseDir,nickname,actorJson['password'])
|
||||
if fields.get('displayNickname'):
|
||||
if fields['displayNickname']!=actorJson['name']:
|
||||
actorJson['name']=fields['displayNickname']
|
||||
|
|
|
@ -171,5 +171,7 @@
|
|||
"Snooze": "غفوة",
|
||||
"Unsnooze": "استيقظ",
|
||||
"Donations link": "رابط التبرعات",
|
||||
"Donate": "تبرع"
|
||||
"Donate": "تبرع",
|
||||
"Change Password": "Change Password",
|
||||
"Confirm Password": "Confirm Password"
|
||||
}
|
||||
|
|
|
@ -171,5 +171,7 @@
|
|||
"Snooze": "Dormitar",
|
||||
"Unsnooze": "Desperta",
|
||||
"Donations link": "Enllaç de donacions",
|
||||
"Donate": "Donar"
|
||||
"Donate": "Donar",
|
||||
"Change Password": "Change Password",
|
||||
"Confirm Password": "Confirm Password"
|
||||
}
|
||||
|
|
|
@ -171,5 +171,7 @@
|
|||
"Snooze": "Cwsg",
|
||||
"Unsnooze": "Deffro",
|
||||
"Donations link": "Dolen rhoddion",
|
||||
"Donate": "Cyfrannu"
|
||||
"Donate": "Cyfrannu",
|
||||
"Change Password": "Change Password",
|
||||
"Confirm Password": "Confirm Password"
|
||||
}
|
||||
|
|
|
@ -171,5 +171,7 @@
|
|||
"Snooze": "Schläfchen",
|
||||
"Unsnooze": "Aufwachen",
|
||||
"Donations link": "Spenden Link",
|
||||
"Donate": "Spenden"
|
||||
"Donate": "Spenden",
|
||||
"Change Password": "Change Password",
|
||||
"Confirm Password": "Confirm Password"
|
||||
}
|
||||
|
|
|
@ -171,5 +171,7 @@
|
|||
"Snooze": "Snooze",
|
||||
"Unsnooze": "Unsnooze",
|
||||
"Donations link": "Donations link",
|
||||
"Donate": "Donate"
|
||||
"Donate": "Donate",
|
||||
"Change Password": "Change Password",
|
||||
"Confirm Password": "Confirm Password"
|
||||
}
|
||||
|
|
|
@ -171,5 +171,7 @@
|
|||
"Snooze": "dormitar",
|
||||
"Unsnooze": "Despierta",
|
||||
"Donations link": "Enlace de donaciones",
|
||||
"Donate": "Donar"
|
||||
"Donate": "Donar",
|
||||
"Change Password": "Change Password",
|
||||
"Confirm Password": "Confirm Password"
|
||||
}
|
||||
|
|
|
@ -171,5 +171,7 @@
|
|||
"Snooze": "Roupillon",
|
||||
"Unsnooze": "Réveillez-vous",
|
||||
"Donations link": "Lien vers les dons",
|
||||
"Donate": "Faire un don"
|
||||
"Donate": "Faire un don",
|
||||
"Change Password": "Change Password",
|
||||
"Confirm Password": "Confirm Password"
|
||||
}
|
||||
|
|
|
@ -171,5 +171,7 @@
|
|||
"Snooze": "Codladh",
|
||||
"Unsnooze": "Dúisigh",
|
||||
"Donations link": "Nasc síntiús",
|
||||
"Donate": "Síntiús"
|
||||
"Donate": "Síntiús",
|
||||
"Change Password": "Change Password",
|
||||
"Confirm Password": "Confirm Password"
|
||||
}
|
||||
|
|
|
@ -171,5 +171,7 @@
|
|||
"Snooze": "दिन में झपकी लेना",
|
||||
"Unsnooze": "उठो",
|
||||
"Donations link": "दान लिंक",
|
||||
"Donate": "दान करना"
|
||||
"Donate": "दान करना",
|
||||
"Change Password": "Change Password",
|
||||
"Confirm Password": "Confirm Password"
|
||||
}
|
||||
|
|
|
@ -171,5 +171,7 @@
|
|||
"Snooze": "Sonnellino",
|
||||
"Unsnooze": "Svegliati",
|
||||
"Donations link": "Link alle donazioni",
|
||||
"Donate": "Donare"
|
||||
"Donate": "Donare",
|
||||
"Change Password": "Change Password",
|
||||
"Confirm Password": "Confirm Password"
|
||||
}
|
||||
|
|
|
@ -171,5 +171,7 @@
|
|||
"Snooze": "スヌーズ",
|
||||
"Unsnooze": "目を覚ます",
|
||||
"Donations link": "寄付リンク",
|
||||
"Donate": "寄付する"
|
||||
"Donate": "寄付する",
|
||||
"Change Password": "Change Password",
|
||||
"Confirm Password": "Confirm Password"
|
||||
}
|
||||
|
|
|
@ -167,5 +167,7 @@
|
|||
"Undo the repeat": "Anullar lo partatge",
|
||||
"Repeat this post": "Repetir la publicacion",
|
||||
"Show profile": "Veire lo perfil",
|
||||
"SHOW MORE": "NE VEIRE MAI"
|
||||
"SHOW MORE": "NE VEIRE MAI",
|
||||
"Change Password": "Change Password",
|
||||
"Confirm Password": "Confirm Password"
|
||||
}
|
||||
|
|
|
@ -171,5 +171,7 @@
|
|||
"Snooze": "Soneca",
|
||||
"Unsnooze": "Acorde",
|
||||
"Donations link": "Link de doações",
|
||||
"Donate": "Doar"
|
||||
"Donate": "Doar",
|
||||
"Change Password": "Change Password",
|
||||
"Confirm Password": "Confirm Password"
|
||||
}
|
||||
|
|
|
@ -171,5 +171,7 @@
|
|||
"Snooze": "вздремнуть",
|
||||
"Unsnooze": "Проснись",
|
||||
"Donations link": "Ссылка на пожертвования",
|
||||
"Donate": "жертвовать"
|
||||
"Donate": "жертвовать",
|
||||
"Change Password": "Change Password",
|
||||
"Confirm Password": "Confirm Password"
|
||||
}
|
||||
|
|
|
@ -171,5 +171,7 @@
|
|||
"Snooze": "打盹",
|
||||
"Unsnooze": "醒来",
|
||||
"Donations link": "捐款连结",
|
||||
"Donate": "捐"
|
||||
"Donate": "捐",
|
||||
"Change Password": "Change Password",
|
||||
"Confirm Password": "Confirm Password"
|
||||
}
|
||||
|
|
|
@ -627,6 +627,12 @@ def htmlEditProfile(translate: {},baseDir: str,path: str,domain: str,port: int)
|
|||
editProfileForm+=' accept=".png">'
|
||||
editProfileForm+=' </div>'
|
||||
editProfileForm+=' <div class="container">'
|
||||
editProfileForm+=translate['Change Password']+'<br>'
|
||||
editProfileForm+=' <input type="text" name="password" value="">'
|
||||
editProfileForm+=translate['Confirm Password']+'<br>'
|
||||
editProfileForm+=' <input type="text" name="passwordconfirm" value="">'
|
||||
editProfileForm+=' </div>'
|
||||
editProfileForm+=' <div class="container">'
|
||||
editProfileForm+=' <input type="checkbox" class=profilecheckbox" name="approveFollowers" '+manuallyApprovesFollowers+'>'+translate['Approve follower requests']+'<br>'
|
||||
editProfileForm+=' <input type="checkbox" class=profilecheckbox" name="isBot" '+isBot+'>'+translate['This is a bot account']+'<br>'
|
||||
editProfileForm+=' <input type="checkbox" class=profilecheckbox" name="isGroup" '+isGroup+'>'+translate['This is a group account']+'<br>'
|
||||
|
|
Loading…
Reference in New Issue