disable registration
This commit is contained in:
parent
6bc9b43f84
commit
725431ff91
1 changed files with 2 additions and 0 deletions
|
@ -6,6 +6,7 @@ from .. import db
|
||||||
from ..models import User, Transaction
|
from ..models import User, Transaction
|
||||||
from ..email import send_email
|
from ..email import send_email
|
||||||
from .forms import LoginForm, TwoFAForm, RegistrationForm, ChangePasswordForm,PasswordResetRequestForm, PasswordResetForm
|
from .forms import LoginForm, TwoFAForm, RegistrationForm, ChangePasswordForm,PasswordResetRequestForm, PasswordResetForm
|
||||||
|
from ..decorators import admin_required, permission_required
|
||||||
|
|
||||||
from io import BytesIO
|
from io import BytesIO
|
||||||
import pyqrcode
|
import pyqrcode
|
||||||
|
@ -139,6 +140,7 @@ def logout():
|
||||||
return redirect(url_for('main.index'))
|
return redirect(url_for('main.index'))
|
||||||
|
|
||||||
@auth.route('/register', methods=['GET', 'POST'])
|
@auth.route('/register', methods=['GET', 'POST'])
|
||||||
|
@admin_required
|
||||||
def register():
|
def register():
|
||||||
#print(current_app.secret_key)
|
#print(current_app.secret_key)
|
||||||
page = { 'title': 'Register' }
|
page = { 'title': 'Register' }
|
||||||
|
|
Loading…
Reference in a new issue