Reimplemented password reset for users

This commit is contained in:
frikky
2020-06-16 05:39:57 +02:00
parent 4e6b12dc28
commit 80c893e574
3 changed files with 4 additions and 1 deletions
+1
View File
@@ -6034,6 +6034,7 @@ func init() {
r.HandleFunc("/api/v1/getinfo", handleInfo).Methods("GET", "OPTIONS")
r.HandleFunc("/api/v1/getsettings", handleSettings).Methods("GET", "OPTIONS")
r.HandleFunc("/api/v1/generateapikey", handleApiGeneration).Methods("GET", "OPTIONS")
r.HandleFunc("/api/v1/passwordchange", handlePasswordChange).Methods("POST", "OPTIONS")
r.HandleFunc("/api/v1/docs", getDocList).Methods("GET", "OPTIONS")
r.HandleFunc("/api/v1/docs/{key}", getDocs).Methods("GET", "OPTIONS")
+1 -1
View File
@@ -465,7 +465,7 @@ const AppCreator = (props) => {
break
}
// FIXME: Check if the name already exists
// FIXME: If name exists,
// FIXME: Check if first part of parsedname is verb, otherwise use method
const parsedname = curname.split("_").join(" ").split("-").join(" ").split("{").join(" ").split("}").join(" ").trim()
if (parsedname.length === 0) {
+2
View File
@@ -209,6 +209,7 @@ const Settings = (props) => {
onClick={() => generateApikey()}
>Re-Generate APIKEY</Button>
<Divider style={{marginTop: "40px"}}/>
{/*
<h2>Settings</h2>
<div style={{flex: "1", display: "flex", flexDirection: "row"}}>
<TextField
@@ -369,6 +370,7 @@ const Settings = (props) => {
</Button>
<h3>{formMessage}</h3>
<Divider />
*/}
<h2>Password</h2>
<div style={{flex: "1", display: "flex", flexDirection: "row"}}>
<TextField