diff --git a/fir_client/src/components/FirLogin.vue b/fir_client/src/components/FirLogin.vue
index 5cec09a..2629982 100644
--- a/fir_client/src/components/FirLogin.vue
+++ b/fir_client/src/components/FirLogin.vue
@@ -62,7 +62,7 @@
登录
-
+
注册
@@ -92,7 +92,8 @@
activeName: 'username',
allow_ways: {},
rutitle: '',
- rctitle: ''
+ rctitle: '',
+ register_enable: false,
}
},
@@ -220,6 +221,7 @@
if (data.code === 1000) {
this.cptch = data.data;
this.allow_ways = data.data.login_type;
+ this.register_enable = data.data.register_enable;
this.set_rtitle();
this.set_activename();
} else {
diff --git a/fir_ser/api/views/login.py b/fir_ser/api/views/login.py
index 87bed04..dceb109 100644
--- a/fir_ser/api/views/login.py
+++ b/fir_ser/api/views/login.py
@@ -232,6 +232,8 @@ class LoginView(APIView):
if LOGIN.get("captcha"):
response.data = get_captcha()
response.data['login_type'] = get_login_type()
+ allow_f = REGISTER.get("enable")
+ response.data['register_enable'] = allow_f
return Response(response.dict)