mirror of
https://github.com/casdoor/casdoor.git
synced 2025-09-07 10:30:26 +08:00
feat: fix "Key text" multi-line input box for Apple OAuth provider
This commit is contained in:
@@ -878,9 +878,17 @@ class ProviderEditPage extends React.Component {
|
||||
{this.getClientSecret2Label(this.state.provider)} :
|
||||
</Col>
|
||||
<Col span={22} >
|
||||
<Input value={this.state.provider.clientSecret2} onChange={e => {
|
||||
this.updateProviderField("clientSecret2", e.target.value);
|
||||
}} />
|
||||
{
|
||||
(this.state.provider.category === "OAuth" && this.state.provider.type === "Apple") ? (
|
||||
<TextArea autoSize={{minRows: 1, maxRows: 20}} value={this.state.provider.clientSecret2} onChange={e => {
|
||||
this.updateProviderField("clientSecret2", e.target.value);
|
||||
}} />
|
||||
) : (
|
||||
<Input value={this.state.provider.clientSecret2} onChange={e => {
|
||||
this.updateProviderField("clientSecret2", e.target.value);
|
||||
}} />
|
||||
)
|
||||
}
|
||||
</Col>
|
||||
</Row>
|
||||
)
|
||||
|
Reference in New Issue
Block a user