Verwaltung von LDAP Accounts und Gruppen
Peter Hormanns
2020-03-06 7bfbf0b8c030606959f02d67f4f8ba7b091028c5
fix external address password reset
1 files modified
10 ■■■■ changed files
src/main/java/de/jalin/ldapadmin/web/ResetPasswordServlet.java 10 ●●●● patch | view | raw | blame | history
src/main/java/de/jalin/ldapadmin/web/ResetPasswordServlet.java
@@ -128,7 +128,10 @@
                    for (User usr : allUsers) {
                        if (usr.getEmailInternal() != null && usr.getEmailInternal().equalsIgnoreCase(loginOrEMail)) {
                            login = usr.getLogin();
                            email = usr.getEmailInternal();
                            email = usr.getEmailExternal();
                            if (email == null || email.isEmpty()) {
                                email = usr.getEmailInternal();
                            }
                            salutation = usr.getFirstname() + " " + usr.getLastname();
                        }
                    }
@@ -136,7 +139,10 @@
                    final User usr = usrDAO.read("uid=" + loginOrEMail + ",ou=users,");
                    if (usr != null) {
                        login = usr.getLogin();
                        email = usr.getEmailInternal();
                        email = usr.getEmailExternal();
                        if (email == null || email.isEmpty()) {
                            email = usr.getEmailInternal();
                        }
                        salutation = usr.getFirstname() + " " + usr.getLastname();
                    }
                }