# Bug OP-8515 - Assign random password broken if "Number of most recently used passwords banned for reuse" enabled

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-8515

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 11.2.3 |
| Observed in versions | 11.2.0 |
| Sprint | 11.2.3 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 11.2.x |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### **Environment**:

Your OpenProject Version: 11.2.2

### **Steps to reproduce:**

1.  Set &quot;Number of most recently used passwords banned for reuse&quot; to 3
2.  Create a new user
3.  Check &quot;Assign random password&quot; and save

### **Actual Behavior**

An internal server error (logs reveal: Validation failed: Password has been used before. Please choose one that is different from your last 3.) occurs and the user cannot be saved.

### **Expected Behavior**

  
The user is assigned a random password and saved.
