Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for changePassword (0.13 sec)

  1. src/main/java/org/codelibs/fess/auth/chain/LdapChain.java

        @Override
        public void delete(final User user) {
            ComponentUtil.getLdapManager().delete(user);
        }
    
        @Override
        public boolean changePassword(final String username, final String password) {
            final boolean changed = ComponentUtil.getLdapManager().changePassword(username, password);
            return !changed || ComponentUtil.getFessConfig().isLdapAdminSyncPassword();
        }
    
        @Override
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/auth/chain/AuthenticationChainTest.java

            }
    
            assertEquals(1, chain.deleteCalls.size());
        }
    
        // Test changePassword with valid credentials
        public void test_changePassword_success() {
            TestAuthenticationChain chain = new TestAuthenticationChain();
            chain.changePasswordResult = true;
    
            boolean result = chain.changePassword("testuser", "newpassword123");
    
            assertTrue(result);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 14.6K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/auth/AuthenticationManagerTest.java

            assertEquals(user, chain3.lastUpdatedUser);
        }
    
        // Test changePassword with no chains
        public void test_changePassword_noChains() {
            boolean result = authenticationManager.changePassword("testuser", "newpass");
            assertTrue(result); // Returns true when no chains present
        }
    
        // Test changePassword with single chain success
        public void test_changePassword_singleChain_success() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 14K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/auth/chain/LdapChainTest.java

            // Test successful password change when LDAP admin sync is disabled
            testLdapManager.changePasswordResult = true;
            testFessConfig.ldapAdminSyncPassword = false;
    
            boolean result = ldapChain.changePassword("testuser", "newpassword");
    
            assertFalse(result); // returns !changed || syncPassword = !true || false = false
            assertEquals("testuser", testLdapManager.changePasswordUsername);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/auth/AuthenticationManager.java

         * @param password The new password.
         * @return True if the password was successfully changed in all chains, false otherwise.
         */
        public boolean changePassword(final String username, final String password) {
            return chains().get(stream -> stream.allMatch(c -> c.changePassword(username, password)));
        }
    
        /**
         * Deletes a user from all authentication chains.
         * @param user The user to delete.
         */
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/app/web/profile/ProfileAction.java

         */
        @Execute
        public HtmlResponse changePassword(final ProfileForm form) {
            final VaErrorHook toIndexPage = () -> {
                form.clearSecurityInfo();
                return asIndexHtml();
            };
            validatePasswordForm(form, toIndexPage);
            final String username = getUserBean().map(FessUserBean::getUserId).get();
            try {
                userService.changePassword(username, form.newPassword);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/web/login/LoginAction.java

         *
         * @param form the password form containing new password and confirmation
         * @return the HTML response after password change attempt
         */
        @Execute
        public HtmlResponse changePassword(final PasswordForm form) {
            final VaErrorHook toIndexPage = () -> {
                form.clearSecurityInfo();
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/auth/chain/AuthenticationChain.java

         * @param username The username for which to change the password.
         * @param password The new password.
         * @return True if the password was successfully changed, false otherwise.
         */
        boolean changePassword(String username, String password);
    
        /**
         * Loads user information from the authentication chain.
         * @param user The user template containing search criteria.
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/app/service/UserService.java

         * @param password the new password in plain text
         * @throws FessUserNotFoundException if the user is not found
         */
        public void changePassword(final String username, final String password) {
            final boolean changed = ComponentUtil.getAuthenticationManager().changePassword(username, password);
            if (changed) {
                userBhv.selectEntity(cb -> cb.query().setName_Equal(username)).ifPresent(entity -> {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  10. src/main/webapp/WEB-INF/view/login/newpassword.jsp

    							<span class="input-group-text">
    								<em class="fa fa-lock fa-fw">
    							</span>
    						</div>
    					</div>
    					<div class="text-center">
    						<button type="submit" name="changePassword"
    							class="btn btn-primary btn-block"
    							value="<la:message key="labels.login.update"/>">
    							<em class="fa fa-pencil-alt">
    							<la:message key="labels.login.update" />
    						</button>
    					</div>
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jan 18 12:09:07 UTC 2025
    - 3.1K bytes
    - Viewed (0)
Back to top