ソースを参照

feat: 验证码

igb 4 ヶ月 前
コミット
b659931043

+ 1 - 0
config/admin.php

@@ -166,6 +166,7 @@ return [
             'auth/login',
             'auth/logout',
             'captcha',
+            'language-switch',
         ],
 
         'enable_session_middleware' => false,

+ 2 - 1
config/distributor.php

@@ -156,7 +156,8 @@ return [
         'except' => [
             'auth/login',
             'auth/logout',
-            'captcha'
+            'captcha',
+            'language-switch'
         ],
 
     ],

+ 1 - 1
resources/views/admin/pages/login.blade.php

@@ -171,7 +171,7 @@ Dcat.ready(function () {
     });
 
     function switchLanguage(lang) {
-        fetch(`/prime-control/auth/login?lang=${encodeURIComponent(lang)}`, {
+        fetch(`/prime-control/language-switch?lang=${encodeURIComponent(lang)}`, {
             method: 'GET'
         })
             .then(response => {

+ 1 - 1
resources/views/distributor/pages/login.blade.php

@@ -172,7 +172,7 @@ Dcat.ready(function () {
     });
 
     function switchLanguage(lang) {
-        fetch(`/language-switch?lang=${encodeURIComponent(lang)}`, {
+        fetch(`/dist/language-switch?lang=${encodeURIComponent(lang)}`, {
             method: 'GET'
         })
             .then(response => {