Generate real access token.

This commit is contained in:
Yang Luo
2021-03-14 22:48:09 +08:00
parent 1fd6ee388c
commit f014554415
8 changed files with 115 additions and 10 deletions

View File

@ -71,9 +71,9 @@ class ApplicationEditPage extends React.Component {
}
parseApplicationField(key, value) {
// if ([].includes(key)) {
// value = Setting.myParseInt(value);
// }
if (["expireInHours"].includes(key)) {
value = Setting.myParseInt(value);
}
return value;
}
@ -206,6 +206,16 @@ class ApplicationEditPage extends React.Component {
/>
</Col>
</Row>
<Row style={{marginTop: '20px'}} >
<Col style={{marginTop: '5px'}} span={2}>
{i18next.t("general:Expire In Hours")}:
</Col>
<Col span={22} >
<Input value={this.state.application.expireInHours} onChange={e => {
this.updateApplicationField('expireInHours', e.target.value);
}} />
</Col>
</Row>
<Row style={{marginTop: '20px'}} >
<Col style={{marginTop: '5px'}} span={2}>
{i18next.t("application:Enable Password")}:

View File

@ -52,6 +52,7 @@ class ApplicationListPage extends React.Component {
EnablePassword: true,
providers: [],
redirectUrls: [],
expireInHours: 24 * 7,
}
}