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 ..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' }
|
||||
|
|
Loading…
Reference in a new issue