mirror of
https://github.com/go-gitea/gitea.git
synced 2024-05-11 05:55:29 +00:00
Add OpenID configuration in install page (#2276)
This commit is contained in:
committed by
Kim "BKC" Carlbäcker
parent
e7653a67a1
commit
2c3a229a3c
@ -311,9 +311,22 @@ function initInstall() {
|
||||
$('#offline-mode').checkbox('uncheck');
|
||||
}
|
||||
});
|
||||
$('#enable-openid-signin input').change(function () {
|
||||
if ($(this).is(':checked')) {
|
||||
if ( $('#disable-registration input').is(':checked') ) {
|
||||
} else {
|
||||
$('#enable-openid-signup').checkbox('check');
|
||||
}
|
||||
} else {
|
||||
$('#enable-openid-signup').checkbox('uncheck');
|
||||
}
|
||||
});
|
||||
$('#disable-registration input').change(function () {
|
||||
if ($(this).is(':checked')) {
|
||||
$('#enable-captcha').checkbox('uncheck');
|
||||
$('#enable-openid-signup').checkbox('uncheck');
|
||||
} else {
|
||||
$('#enable-openid-signup').checkbox('check');
|
||||
}
|
||||
});
|
||||
$('#enable-captcha input').change(function () {
|
||||
|
Reference in New Issue
Block a user