aboutsummaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2015-04-24 16:43:58 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2015-04-24 16:43:58 +0800
commitf92bdf875b4ccb2a8eadaa571d112ebf653986d6 (patch)
tree7bdcb2774039667c0ff01deabd283840cd2aaa74 /public
parent5de0b0c5cef74e762eb499b6517d0416f2c6bace (diff)
parent182003aa417ba67661c6743e0fabe6e1f67efd1c (diff)
downloadgitea-f92bdf875b4ccb2a8eadaa571d112ebf653986d6.tar.gz
gitea-f92bdf875b4ccb2a8eadaa571d112ebf653986d6.zip
Merge pull request #1226 from nice-software/wip/pam
Add PAM authentication
Diffstat (limited to 'public')
-rw-r--r--public/ng/js/gogs.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/public/ng/js/gogs.js b/public/ng/js/gogs.js
index c5fd719c32..7ffef8af8b 100644
--- a/public/ng/js/gogs.js
+++ b/public/ng/js/gogs.js
@@ -753,10 +753,17 @@ function initAdmin() {
if (v == 2) {
$('.ldap').toggleShow();
$('.smtp').toggleHide();
+ $('.pam').toggleHide();
}
if (v == 3) {
$('.smtp').toggleShow();
$('.ldap').toggleHide();
+ $('.pam').toggleHide();
+ }
+ if (v == 4) {
+ $('.pam').toggleShow();
+ $('.smtp').toggleHide();
+ $('.ldap').toggleHide();
}
});