This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta name="description" content="modularized + namespaced"> | |
| <script src="https://code.jquery.com/jquery.min.js"></script> | |
| <link href="https://netdna.bootstrapcdn.com/twitterbootstrap/ | |
| 2.3.2/css/bootstrap-combined.min.css" rel="stylesheet" | |
| type="text/css" /> | |
| <script src="https://netdna.bootstrapcdn.com/twitterbootstrap/ | |
| 2.3.2/js/bootstrap.min.js"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #patient Login(STUDENT,EMPLOYEE) | |
| @auth.route('/login',methods=['GET','POST']) | |
| def login(): | |
| if current_user.is_authenticated: | |
| return redirect(url_for('patient.showPatientProfile')) | |
| form = LoginForm() | |
| if form.validate_on_submit(): | |
| cursor = mysql.connect().cursor() | |
| user = USER.checkIfIDExists(cursor,form.ID.data) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import flask_testing | |
| import unittest | |
| import urllib.request | |
| from app import create_app | |
| from flask import url_for, g | |
| class PatientTest(flask_testing.TestCase): |