core: fix username validator not allowing changes that can be done via flows
closes #2755 Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
2ca991ba3d
commit
482491e93c
|
@ -72,6 +72,7 @@ class UserSerializer(ModelSerializer):
|
||||||
)
|
)
|
||||||
groups_obj = ListSerializer(child=GroupSerializer(), read_only=True, source="ak_groups")
|
groups_obj = ListSerializer(child=GroupSerializer(), read_only=True, source="ak_groups")
|
||||||
uid = CharField(read_only=True)
|
uid = CharField(read_only=True)
|
||||||
|
username = CharField(max_length=150)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
|
|
||||||
|
|
|
@ -28395,9 +28395,6 @@ components:
|
||||||
username:
|
username:
|
||||||
type: string
|
type: string
|
||||||
minLength: 1
|
minLength: 1
|
||||||
description: Required. 150 characters or fewer. Letters, digits and @/./+/-/_
|
|
||||||
only.
|
|
||||||
pattern: ^[\w.@+-]+$
|
|
||||||
maxLength: 150
|
maxLength: 150
|
||||||
name:
|
name:
|
||||||
type: string
|
type: string
|
||||||
|
@ -30942,9 +30939,6 @@ components:
|
||||||
title: ID
|
title: ID
|
||||||
username:
|
username:
|
||||||
type: string
|
type: string
|
||||||
description: Required. 150 characters or fewer. Letters, digits and @/./+/-/_
|
|
||||||
only.
|
|
||||||
pattern: ^[\w.@+-]+$
|
|
||||||
maxLength: 150
|
maxLength: 150
|
||||||
name:
|
name:
|
||||||
type: string
|
type: string
|
||||||
|
@ -31254,9 +31248,6 @@ components:
|
||||||
username:
|
username:
|
||||||
type: string
|
type: string
|
||||||
minLength: 1
|
minLength: 1
|
||||||
description: Required. 150 characters or fewer. Letters, digits and @/./+/-/_
|
|
||||||
only.
|
|
||||||
pattern: ^[\w.@+-]+$
|
|
||||||
maxLength: 150
|
maxLength: 150
|
||||||
name:
|
name:
|
||||||
type: string
|
type: string
|
||||||
|
|
Reference in New Issue