Compare commits
3 Commits
b1557ae5f5
...
fbf6a38903
Author | SHA1 | Date | |
---|---|---|---|
|
fbf6a38903 | ||
|
f5fe59ed6b | ||
|
835e26b442 |
8
app.py
8
app.py
@ -76,7 +76,7 @@ def req():
|
||||
def __init__(self, w_name, w_type, w_opt):
|
||||
self.w_name = w_name
|
||||
self.w_type = w_type
|
||||
self.w_opt = w_opt
|
||||
self.w_opt = w_opt # only for choice type widg
|
||||
|
||||
# Configuration for our request form
|
||||
rt = {
|
||||
@ -96,6 +96,7 @@ def signup():
|
||||
# request
|
||||
username = request.form["username"]
|
||||
email = request.form["email"]
|
||||
pub_key = request.form["pub_key"]
|
||||
shell = request.form["shell"]
|
||||
rule_read = request.form["rule_read"]
|
||||
|
||||
@ -118,6 +119,8 @@ def signup():
|
||||
# this checks how many requests we have
|
||||
# and gives us a free ID so we can save
|
||||
# our request
|
||||
# This sets the ID of the request we're
|
||||
# abou to save to dsik
|
||||
if(len(glob.glob("./test/[0-9]*ident*")) == 0):
|
||||
new_id = int(INIT_REQ_ID)
|
||||
new_id_str = INIT_REQ_ID
|
||||
@ -133,9 +136,8 @@ def signup():
|
||||
ident_file.write(str(username) + "\n")
|
||||
ident_file.write(str(email) + "\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)
|
||||
return render_template("signup.html", is_email_user = is_email_user)
|
||||
|
||||
if __name__=="__main__":
|
||||
|
Loading…
Reference in New Issue
Block a user