From 7aac6dfe7382c0bed9d89b0a4c1e2d8082b5d1ef Mon Sep 17 00:00:00 2001
From: Krish M <krish94@uab.edu>
Date: Mon, 18 Apr 2022 23:02:50 -0500
Subject: [PATCH] removed valid_eppa to move to groupvars

---
 app/__init__.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/app/__init__.py b/app/__init__.py
index 653dddf..2e6b0c9 100644
--- a/app/__init__.py
+++ b/app/__init__.py
@@ -20,6 +20,7 @@ import rc_util
 def create_app(config_name):
     app = Flask(__name__, static_folder='static') # initialization of the flask app
     cors = CORS(app, resources={r"/*": {"origins": vars.cors_allowed_origins}})
+    valid_eppa = vars.valid_eppa
     Bootstrap(app) # allowing app to use bootstrap
 
     def get_authorized_user():
@@ -40,8 +41,6 @@ def create_app(config_name):
     @app.route('/', methods=['GET', 'POST']) # initial route to display the reg page
     def index():
 
-        valid_eppa = ["faculty", "staff", "student", "affiliate"]
-
         if 'uid' not in session:
             session['uid']=str(uuid.uuid4())
 
-- 
GitLab