on app.py.... dont need to save rules_read to file. added pub_key to file write

This commit is contained in:
gashapwn 2020-11-27 00:35:36 +00:00
parent b1557ae5f5
commit 835e26b442

3
app.py
View File

@ -96,6 +96,7 @@ def signup():
# request # request
username = request.form["username"] username = request.form["username"]
email = request.form["email"] email = request.form["email"]
pub_key = request.form["pub_key"]
shell = request.form["shell"] shell = request.form["shell"]
rule_read = request.form["rule_read"] rule_read = request.form["rule_read"]
@ -133,7 +134,7 @@ def signup():
ident_file.write(str(username) + "\n") ident_file.write(str(username) + "\n")
ident_file.write(str(email) + "\n") ident_file.write(str(email) + "\n")
ident_file.write(str(shell) + "\n") ident_file.write(str(shell) + "\n")
ident_file.write(str(rule_read) + "\n") ident_file.write(str(pub_key) + "\n")
print(username + " " + email + " " + shell + " " + rule_read) print(username + " " + email + " " + shell + " " + rule_read)
return render_template("signup.html", is_email_user = is_email_user) return render_template("signup.html", is_email_user = is_email_user)