1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-19 08:19:15 +08:00

fix: 解决反向代理 1Panel 并启用 auth_basic 的时候无法登录的问题 (#1083)

Refs https://github.com/1Panel-dev/1Panel/issues/1082
This commit is contained in:
zhengkunwang223 2023-05-19 12:21:06 +08:00 committed by GitHub
parent 4fca9aeb48
commit a74cdcc061
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 6 deletions

View File

@ -5,7 +5,7 @@ const (
SessionName = "psession" SessionName = "psession"
AuthMethodJWT = "jwt" AuthMethodJWT = "jwt"
JWTHeaderName = "Authorization" JWTHeaderName = "PanelAuthorization"
JWTBufferTime = 3600 JWTBufferTime = 3600
JWTIssuer = "1Panel" JWTIssuer = "1Panel"

View File

@ -9,11 +9,15 @@
</template> </template>
</Header> </Header>
</template> </template>
<el-descriptions border :column="1" v-if="!edit"> <el-row v-if="!edit">
<el-col :span="22" :offset="1">
<el-descriptions border :column="1">
<el-descriptions-item v-for="(param, key) in params" :label="getLabel(param)" :key="key"> <el-descriptions-item v-for="(param, key) in params" :label="getLabel(param)" :key="key">
<span>{{ param.showValue && param.showValue != '' ? param.showValue : param.value }}</span> <span>{{ param.showValue && param.showValue != '' ? param.showValue : param.value }}</span>
</el-descriptions-item> </el-descriptions-item>
</el-descriptions> </el-descriptions>
</el-col>
</el-row>
<el-row v-else v-loading="loading"> <el-row v-else v-loading="loading">
<el-col :span="22" :offset="1"> <el-col :span="22" :offset="1">
<el-alert :title="$t('app.updateHelper')" type="warning" :closable="false" /> <el-alert :title="$t('app.updateHelper')" type="warning" :closable="false" />