mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-04 05:10:19 +08:00
Generate real access token.
This commit is contained in:
@ -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")}:
|
||||
|
@ -52,6 +52,7 @@ class ApplicationListPage extends React.Component {
|
||||
EnablePassword: true,
|
||||
providers: [],
|
||||
redirectUrls: [],
|
||||
expireInHours: 24 * 7,
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user