mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-03 20:02:47 +00:00 
			
		
		
		
	Add login and register templates and routes
This commit is contained in:
		@@ -0,0 +1,5 @@
 | 
			
		||||
from flask import Blueprint
 | 
			
		||||
 | 
			
		||||
auth = Blueprint('auth', __name__)
 | 
			
		||||
 | 
			
		||||
from . import views
 | 
			
		||||
 
 | 
			
		||||
@@ -0,0 +1,12 @@
 | 
			
		||||
from flask import render_template
 | 
			
		||||
from . import auth
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@auth.route('/login', methods=['GET', 'POST'])
 | 
			
		||||
def login():
 | 
			
		||||
    return render_template('auth/login.html.j2')
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@auth.route('/register', methods=['GET', 'POST'])
 | 
			
		||||
def register():
 | 
			
		||||
    return render_template('auth/register.html.j2')
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user