fix indentation
authorArt Cancro <ajc@citadel.org>
Mon, 13 Nov 2017 17:02:29 +0000 (12:02 -0500)
committerArt Cancro <ajc@citadel.org>
Mon, 13 Nov 2017 17:02:29 +0000 (12:02 -0500)
citadel/user_ops.c

index 82f693a4ea0a83a1395818ea4688b248d24fd66b..fe830092701028dc7c3fd35added29a94ca64bdb 100644 (file)
@@ -654,14 +654,14 @@ void do_login(void)
         * If we are using LDAP authentication, extract the user's email addresses from the directory.
         * FIXME make this a site configurable setting
         */
-       #ifdef HAVE_LDAP
-               if ((CtdlGetConfigInt("c_auth_mode") == AUTHMODE_LDAP) || (CtdlGetConfigInt("c_auth_mode") == AUTHMODE_LDAP_AD)) {
-                       char new_emailaddrs[512];
-                       if (extract_email_addresses_from_ldap(CCC->ldap_dn, new_emailaddrs) == 0) {
-                               strcpy(CCC->user.emailaddrs, new_emailaddrs);
-                       }
+#ifdef HAVE_LDAP
+       if ((CtdlGetConfigInt("c_auth_mode") == AUTHMODE_LDAP) || (CtdlGetConfigInt("c_auth_mode") == AUTHMODE_LDAP_AD)) {
+               char new_emailaddrs[512];
+               if (extract_email_addresses_from_ldap(CCC->ldap_dn, new_emailaddrs) == 0) {
+                       strcpy(CCC->user.emailaddrs, new_emailaddrs);
                }
-       #endif
+       }
+#endif
 
        /*
         * No email address for user?  Make one up.