|
@@ -42,7 +42,7 @@
|
|
|
<div class="form-group">
|
|
<div class="form-group">
|
|
|
<label for="settingForm[security:passport-twitter:clientSecret]" class="col-xs-3 control-label">{{ t("security_setting.client_secret") }}</label>
|
|
<label for="settingForm[security:passport-twitter:clientSecret]" class="col-xs-3 control-label">{{ t("security_setting.client_secret") }}</label>
|
|
|
<div class="col-xs-6">
|
|
<div class="col-xs-6">
|
|
|
- <input class="form-control" type="text" name="settingForm[security:passport-twitter:clientSecret]" value="{{ settingForm['security:passport-github:clientSecret'] || '' }}">
|
|
|
|
|
|
|
+ <input class="form-control" type="text" name="settingForm[security:passport-twitter:clientSecret]" value="{{ settingForm['security:passport-twitter:clientSecret'] || '' }}">
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="form-group">
|
|
<div class="form-group">
|
|
@@ -74,7 +74,7 @@
|
|
|
</form>
|
|
</form>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
- $('input[name="settingForm[security:passport-github:isEnabled]"]').change(function() {
|
|
|
|
|
|
|
+ $('input[name="settingForm[security:passport-twitter:isEnabled]"]').change(function() {
|
|
|
const isEnabled = ($(this).val() === "true");
|
|
const isEnabled = ($(this).val() === "true");
|
|
|
|
|
|
|
|
if (isEnabled) {
|
|
if (isEnabled) {
|