Skip to content
Snippets Groups Projects
Commit c19e31c3 authored by Mitchell Moore's avatar Mitchell Moore
Browse files

Update Readme and minor html tweaks

parent 9714250a
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,7 @@
To clone this repo use the command:
```
git clone https://gitlab.rc.uab.edu/noe121/flaskformwork.git
git clone https://gitlab.rc.uab.edu/mmoo97/flask_user_reg.git
```
## Prerequisites
......
......@@ -26,13 +26,17 @@ def create_app(config_name):
@app.route('/', methods=['POST'])
def SignUp():
if request.method == 'POST':
name = request.form['name']
name = request.form['name']
if request.method == 'POST' and name != "":
# TODO: Test remote_user string handling from apache server.
# user = request.environ('REMOTE_USER')
# user = request.remote_user.name
user = "mmoo97"
user = "*remote_user*"
# TODO: Deliver arguments to script.
return redirect(url_for('success', name=name, username=user))
......
......@@ -4,8 +4,12 @@
<meta charset="UTF-8">
<title>403</title>
<h1>403 Error</h1>
</head>
<body>
<p>Forbidden</p>
</body>
</html>
\ No newline at end of file
......@@ -6,6 +6,7 @@
<h1>404 Error</h1>
</head>
<body>
<p>Page Not Found</p>
</body>
</html>
\ No newline at end of file
......@@ -6,6 +6,7 @@
<h1>500 Error</h1>
</head>
<body>
<p>Internal Server Error</p>
</body>
</html>
\ No newline at end of file
......@@ -7,7 +7,7 @@
<form action="/" method="post">
<div class ="signUpContainer">
<label for="username"><b>Username:<br></b></label>
<label for="user_val">*REMOTE_USER val from apache server*</label><br>
<label for="user_val">*remote_user*</label><br>
<label for="name"><b>Full Name:<br></b></label>
<input type="text" placeholder="Enter Full Name" name="name" />
<input type="submit" />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment