disable registration

This commit is contained in:
deflax 2018-08-01 10:20:50 +03:00
parent 6bc9b43f84
commit 725431ff91

View file

@ -6,6 +6,7 @@ from .. import db
from ..models import User, Transaction
from ..email import send_email
from .forms import LoginForm, TwoFAForm, RegistrationForm, ChangePasswordForm,PasswordResetRequestForm, PasswordResetForm
from ..decorators import admin_required, permission_required
from io import BytesIO
import pyqrcode
@ -139,6 +140,7 @@ def logout():
return redirect(url_for('main.index'))
@auth.route('/register', methods=['GET', 'POST'])
@admin_required
def register():
#print(current_app.secret_key)
page = { 'title': 'Register' }