diff --git a/servicePoints/templates/accountNotFound.html b/servicePoints/templates/accountNotFound.html deleted file mode 100644 index af51f6602c25848ef46cf812e0b2512ee59f0446..0000000000000000000000000000000000000000 --- a/servicePoints/templates/accountNotFound.html +++ /dev/null @@ -1,19 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <link rel="stylesheet" type="text/css" href="/css/style.css"> - <title>ServicePoints</title> - </head> - - <body> - <p> - The Username or Password You've Entered is Incorrect - </p> - <form action="/accounts/accountNotFound/" method="post" enctype="multipart/form-data"> - <input type="submit" name="login" value="Return to Login"/> - </form> - <form action="/accounts/accountNotFound/" method="post" enctype="multipart/form-data"> - <input type="submit" name="createAccount" value="Create Account"/> - </form> - </body> -</html> diff --git a/servicePoints/templates/duplicateOrgName.html b/servicePoints/templates/duplicateOrgName.html deleted file mode 100644 index 0ba69753e6b4bc2482c859ea5a786e7d16cad607..0000000000000000000000000000000000000000 --- a/servicePoints/templates/duplicateOrgName.html +++ /dev/null @@ -1,16 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <link rel="stylesheet" type="text/css" href="/css/style.css"> - <title>ServicePoints</title> - </head> - - <body> - <p> - This organization already exists - </p> - <form action="/accounts/duplicateOrgName/{{prev}}" method="post" enctype="multipart/form-data"> - <input type="submit" name="return" value="Return to Create Organization"/> - </form> - </body> -</html> diff --git a/servicePoints/templates/duplicateUsername.html b/servicePoints/templates/duplicateUsername.html deleted file mode 100644 index b94f158c51c352b760f2daef1e90ff9b5e4528f2..0000000000000000000000000000000000000000 --- a/servicePoints/templates/duplicateUsername.html +++ /dev/null @@ -1,16 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <link rel="stylesheet" type="text/css" href="/css/style.css"> - <title>ServicePoints</title> - </head> - - <body> - <p> - This username is taken - </p> - <form action="/accounts/duplicateUsername/{{prev}}" method="post" enctype="multipart/form-data"> - <input type="submit" name="return" value="Return to Create Account"/> - </form> - </body> -</html> diff --git a/servicePoints/templates/orgNotFound.html b/servicePoints/templates/orgNotFound.html deleted file mode 100644 index bb037ed1444fad728c3f2cac8b69b1ad34c983cc..0000000000000000000000000000000000000000 --- a/servicePoints/templates/orgNotFound.html +++ /dev/null @@ -1,19 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <link rel="stylesheet" type="text/css" href="/css/style.css"> - <title>ServicePoints</title> - </head> - - <body> - <p> - The Student Organization You've Entered Does Not Exist - </p> - <form action="/accounts/orgNotFound/" method="post" enctype="multipart/form-data"> - <input type="submit" name="registerOrg" value="Register Your Organization"/> - </form> - <form action="/accounts/orgNotFound/" method="post" enctype="multipart/form-data"> - <input type="submit" name="login" value="Return To Login"/> - </form> - </body> -</html> diff --git a/servicePoints/views/accounts.py b/servicePoints/views/accounts.py index 91cbbeb65a414f80d671f49fc7d1cb03d1154676..602c00fe6bd51c9f41fd5f9cdf8a88b224e0849b 100644 --- a/servicePoints/views/accounts.py +++ b/servicePoints/views/accounts.py @@ -253,41 +253,6 @@ def delete(): context = {'username': flask.session['username']} return render_template('delete.html', **context) -@servicePoints.app.route('/accounts/orgNotFound/', methods=['GET', 'POST']) -def orgNotFound(): - """Render delete page.""" - if flask.request.method == 'POST': - if 'login' in flask.request.form: - return flask.redirect(flask.url_for('login')) - if 'registerOrg' in flask.request.form: - return flask.redirect(flask.url_for('createOrg')) - context = {} - return render_template('orgNotFound.html', **context) - -@servicePoints.app.route('/accounts/accountNotFound/', methods=['GET', 'POST']) -def accountNotFound(): - if flask.request.method == 'POST': - if 'login' in flask.request.form: - return flask.redirect(flask.url_for('login')) - if 'createAccount' in flask.request.form: - return flask.redirect(flask.url_for('create')) - context = {} - return render_template('accountNotFound.html', **context) - -@servicePoints.app.route('/accounts/duplicateUsername/<prev>', methods=['GET', 'POST']) -def duplicateUsername(prev): - if flask.request.method == 'POST': - return flask.redirect(flask.url_for(prev)) - context = {"prev": prev} - return render_template('duplicateUsername.html', **context) - -@servicePoints.app.route('/accounts/duplicateOrgName/', methods=['GET', 'POST']) -def duplicateOrgName(): - if flask.request.method == 'POST': - return flask.redirect(flask.url_for('createOrg')) - context = {} - return render_template('duplicateOrgName.html', **context) - @servicePoints.app.route('/accounts/hourError/', methods=['GET', 'POST']) def hourError(): if flask.request.method == 'POST':