• R/O
  • HTTP
  • SSH
  • HTTPS

pukiwiki: Commit


Commit MetaInfo

Revision132ca2801d08f4c056d0f8c2888f67cd76d44710 (tree)
Time2016-02-13 03:50:52
Authorumorigu <umorigu@gmai...>
Commiterumorigu

Log Message

BugTrack2/383 Set Form authentication as default auth method type

Change Summary

Incremental Difference

--- a/lib/auth.php
+++ b/lib/auth.php
@@ -245,6 +245,20 @@ function ensure_valid_auth_user()
245245 global $auth_type, $auth_users, $_msg_auth, $auth_user, $auth_groups;
246246 global $auth_user_groups, $auth_user_fullname;
247247 global $auth_provider_user_prefix, $ldap_user_account;
248+ global $read_auth, $edit_auth;
249+ if ($read_auth || $edit_auth) {
250+ switch ($auth_type) {
251+ case AUTH_TYPE_BASIC:
252+ case AUTH_TYPE_FORM:
253+ case AUTH_TYPE_EXTERNAL:
254+ case AUTH_TYPE_EXTERNAL_REMOTE_USER:
255+ case AUTH_TYPE_EXTERNAL_X_FORWARDED_USER:
256+ break;
257+ default:
258+ // $auth_type is not valid, Set form auth as default
259+ $auth_type = AUTH_TYPE_FORM;
260+ }
261+ }
248262 switch ($auth_type) {
249263 case AUTH_TYPE_BASIC:
250264 {
Show on old repository browser