Skip to content

Commit 0d8c18c

Browse files
committed
修复登录页HTTPS问题
1 parent 94bf32c commit 0d8c18c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Controllers/AuthController.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ public function getLogin()
2828
return redirect($this->redirectPath());
2929
}
3030

31+
if (config('admin.https')){
32+
app('request')->server->set('HTTPS',true);
33+
}
34+
3135
$data = $this->vueData();
3236

3337
$data['backgroundImage'] = config('admin.login_background_image');

0 commit comments

Comments
 (0)