Skip to content

Commit e6e3c79

Browse files
committed
change the length requirements of basic auth password
1 parent a69601e commit e6e3c79

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/de/rwth/idsg/steve/web/dto/ChargePointForm.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public class ChargePointForm {
7676
* encoded password value, and sends it to repository layer.
7777
*/
7878
@Schema(accessMode = Schema.AccessMode.WRITE_ONLY)
79-
@Length(min = 32, max = 40, message = "The field must be between {min} and {max} characters")
79+
@Length(min = 16, max = 20, message = "The field must be between {min} and {max} characters")
8080
private String authPassword;
8181

8282
@Schema(accessMode = Schema.AccessMode.READ_ONLY)

src/main/webapp/WEB-INF/views/data-man/chargepointDetails.jsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
</td>
123123
</tr>
124124
<tr>
125-
<td>Basic Auth Password:</td>
125+
<td>Basic Auth Password (plain text):</td>
126126
<td><form:input path="authPassword" type="password" placeholder="${chargePointForm.hasAuthPassword ? 'Enter new password' : 'Enter password'}" /></td>
127127
</tr>
128128
</tbody>

0 commit comments

Comments
 (0)