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 createPassword
|
||||||
from auth import createBasicAuthHeader
|
from auth import createBasicAuthHeader
|
||||||
from auth import authorizeBasic
|
from auth import authorizeBasic
|
||||||
|
from auth import storeBasicCredentials
|
||||||
from threads import threadWithTrace
|
from threads import threadWithTrace
|
||||||
from threads import removeDormantThreads
|
from threads import removeDormantThreads
|
||||||
from media import getMediaPath
|
from media import getMediaPath
|
||||||
|
@ -3175,6 +3176,12 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
if len(actorJson['skills'].items())!=len(newSkills.items()):
|
if len(actorJson['skills'].items())!=len(newSkills.items()):
|
||||||
actorChanged=True
|
actorChanged=True
|
||||||
actorJson['skills']=newSkills
|
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.get('displayNickname'):
|
||||||
if fields['displayNickname']!=actorJson['name']:
|
if fields['displayNickname']!=actorJson['name']:
|
||||||
actorJson['name']=fields['displayNickname']
|
actorJson['name']=fields['displayNickname']
|
||||||
|
|
|
@ -171,5 +171,7 @@
|
||||||
"Snooze": "غفوة",
|
"Snooze": "غفوة",
|
||||||
"Unsnooze": "استيقظ",
|
"Unsnooze": "استيقظ",
|
||||||
"Donations link": "رابط التبرعات",
|
"Donations link": "رابط التبرعات",
|
||||||
"Donate": "تبرع"
|
"Donate": "تبرع",
|
||||||
|
"Change Password": "Change Password",
|
||||||
|
"Confirm Password": "Confirm Password"
|
||||||
}
|
}
|
||||||
|
|
|
@ -171,5 +171,7 @@
|
||||||
"Snooze": "Dormitar",
|
"Snooze": "Dormitar",
|
||||||
"Unsnooze": "Desperta",
|
"Unsnooze": "Desperta",
|
||||||
"Donations link": "Enllaç de donacions",
|
"Donations link": "Enllaç de donacions",
|
||||||
"Donate": "Donar"
|
"Donate": "Donar",
|
||||||
|
"Change Password": "Change Password",
|
||||||
|
"Confirm Password": "Confirm Password"
|
||||||
}
|
}
|
||||||
|
|
|
@ -171,5 +171,7 @@
|
||||||
"Snooze": "Cwsg",
|
"Snooze": "Cwsg",
|
||||||
"Unsnooze": "Deffro",
|
"Unsnooze": "Deffro",
|
||||||
"Donations link": "Dolen rhoddion",
|
"Donations link": "Dolen rhoddion",
|
||||||
"Donate": "Cyfrannu"
|
"Donate": "Cyfrannu",
|
||||||
|
"Change Password": "Change Password",
|
||||||
|
"Confirm Password": "Confirm Password"
|
||||||
}
|
}
|
||||||
|
|
|
@ -171,5 +171,7 @@
|
||||||
"Snooze": "Schläfchen",
|
"Snooze": "Schläfchen",
|
||||||
"Unsnooze": "Aufwachen",
|
"Unsnooze": "Aufwachen",
|
||||||
"Donations link": "Spenden Link",
|
"Donations link": "Spenden Link",
|
||||||
"Donate": "Spenden"
|
"Donate": "Spenden",
|
||||||
|
"Change Password": "Change Password",
|
||||||
|
"Confirm Password": "Confirm Password"
|
||||||
}
|
}
|
||||||
|
|
|
@ -171,5 +171,7 @@
|
||||||
"Snooze": "Snooze",
|
"Snooze": "Snooze",
|
||||||
"Unsnooze": "Unsnooze",
|
"Unsnooze": "Unsnooze",
|
||||||
"Donations link": "Donations link",
|
"Donations link": "Donations link",
|
||||||
"Donate": "Donate"
|
"Donate": "Donate",
|
||||||
|
"Change Password": "Change Password",
|
||||||
|
"Confirm Password": "Confirm Password"
|
||||||
}
|
}
|
||||||
|
|
|
@ -171,5 +171,7 @@
|
||||||
"Snooze": "dormitar",
|
"Snooze": "dormitar",
|
||||||
"Unsnooze": "Despierta",
|
"Unsnooze": "Despierta",
|
||||||
"Donations link": "Enlace de donaciones",
|
"Donations link": "Enlace de donaciones",
|
||||||
"Donate": "Donar"
|
"Donate": "Donar",
|
||||||
|
"Change Password": "Change Password",
|
||||||
|
"Confirm Password": "Confirm Password"
|
||||||
}
|
}
|
||||||
|
|
|
@ -171,5 +171,7 @@
|
||||||
"Snooze": "Roupillon",
|
"Snooze": "Roupillon",
|
||||||
"Unsnooze": "Réveillez-vous",
|
"Unsnooze": "Réveillez-vous",
|
||||||
"Donations link": "Lien vers les dons",
|
"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",
|
"Snooze": "Codladh",
|
||||||
"Unsnooze": "Dúisigh",
|
"Unsnooze": "Dúisigh",
|
||||||
"Donations link": "Nasc síntiús",
|
"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": "दिन में झपकी लेना",
|
"Snooze": "दिन में झपकी लेना",
|
||||||
"Unsnooze": "उठो",
|
"Unsnooze": "उठो",
|
||||||
"Donations link": "दान लिंक",
|
"Donations link": "दान लिंक",
|
||||||
"Donate": "दान करना"
|
"Donate": "दान करना",
|
||||||
|
"Change Password": "Change Password",
|
||||||
|
"Confirm Password": "Confirm Password"
|
||||||
}
|
}
|
||||||
|
|
|
@ -171,5 +171,7 @@
|
||||||
"Snooze": "Sonnellino",
|
"Snooze": "Sonnellino",
|
||||||
"Unsnooze": "Svegliati",
|
"Unsnooze": "Svegliati",
|
||||||
"Donations link": "Link alle donazioni",
|
"Donations link": "Link alle donazioni",
|
||||||
"Donate": "Donare"
|
"Donate": "Donare",
|
||||||
|
"Change Password": "Change Password",
|
||||||
|
"Confirm Password": "Confirm Password"
|
||||||
}
|
}
|
||||||
|
|
|
@ -171,5 +171,7 @@
|
||||||
"Snooze": "スヌーズ",
|
"Snooze": "スヌーズ",
|
||||||
"Unsnooze": "目を覚ます",
|
"Unsnooze": "目を覚ます",
|
||||||
"Donations link": "寄付リンク",
|
"Donations link": "寄付リンク",
|
||||||
"Donate": "寄付する"
|
"Donate": "寄付する",
|
||||||
|
"Change Password": "Change Password",
|
||||||
|
"Confirm Password": "Confirm Password"
|
||||||
}
|
}
|
||||||
|
|
|
@ -167,5 +167,7 @@
|
||||||
"Undo the repeat": "Anullar lo partatge",
|
"Undo the repeat": "Anullar lo partatge",
|
||||||
"Repeat this post": "Repetir la publicacion",
|
"Repeat this post": "Repetir la publicacion",
|
||||||
"Show profile": "Veire lo perfil",
|
"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",
|
"Snooze": "Soneca",
|
||||||
"Unsnooze": "Acorde",
|
"Unsnooze": "Acorde",
|
||||||
"Donations link": "Link de doações",
|
"Donations link": "Link de doações",
|
||||||
"Donate": "Doar"
|
"Donate": "Doar",
|
||||||
|
"Change Password": "Change Password",
|
||||||
|
"Confirm Password": "Confirm Password"
|
||||||
}
|
}
|
||||||
|
|
|
@ -171,5 +171,7 @@
|
||||||
"Snooze": "вздремнуть",
|
"Snooze": "вздремнуть",
|
||||||
"Unsnooze": "Проснись",
|
"Unsnooze": "Проснись",
|
||||||
"Donations link": "Ссылка на пожертвования",
|
"Donations link": "Ссылка на пожертвования",
|
||||||
"Donate": "жертвовать"
|
"Donate": "жертвовать",
|
||||||
|
"Change Password": "Change Password",
|
||||||
|
"Confirm Password": "Confirm Password"
|
||||||
}
|
}
|
||||||
|
|
|
@ -171,5 +171,7 @@
|
||||||
"Snooze": "打盹",
|
"Snooze": "打盹",
|
||||||
"Unsnooze": "醒来",
|
"Unsnooze": "醒来",
|
||||||
"Donations link": "捐款连结",
|
"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+=' accept=".png">'
|
||||||
editProfileForm+=' </div>'
|
editProfileForm+=' </div>'
|
||||||
editProfileForm+=' <div class="container">'
|
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="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="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>'
|
editProfileForm+=' <input type="checkbox" class=profilecheckbox" name="isGroup" '+isGroup+'>'+translate['This is a group account']+'<br>'
|
||||||
|
|
Loading…
Reference in New Issue