Open mrrichardasmith opened 2 years ago
`@app.route('/admin/
return render_template('admin.html', admin=admin, admin_form=admin_form, registration=registration)
else:
print('Supressed Registration Page')
confirm_admin = False
return render_template('admin.html', confirm_admin=confirm_admin, admin=NULL)
if request.method == 'POST' and admin_form.validate():
new_admin = Admin.query.get(1)
print(new_admin)
if new_admin.registration == True:
new_admin.registration = False
else:
new_admin.registration = True
db.session.commit()
return redirect(url_for('admin', username=current_user.username))
`
As a famly administrator wanting to close the registration feature after all family members are registered shutting the door Given that all the family members that are wanting to participate in the connected family experience have registered their accounts. When accessing the family app configuration panel the option should exist to toggle off the registration page. Then in the future if registration needs to be activated again to extend the membership the registration feature can be toggled back on again.