File tree 3 files changed +11
-0
lines changed
3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -236,9 +236,11 @@ class Meta:
236
236
"path" ,
237
237
"type" ,
238
238
"uuid" ,
239
+ "password_change_date" ,
239
240
]
240
241
extra_kwargs = {
241
242
"name" : {"allow_blank" : True },
243
+ "password_change_date" : {"read_only" : True },
242
244
}
243
245
244
246
Original file line number Diff line number Diff line change @@ -56494,11 +56494,16 @@ components:
56494
56494
type: string
56495
56495
format: uuid
56496
56496
readOnly: true
56497
+ password_change_date:
56498
+ type: string
56499
+ format: date-time
56500
+ readOnly: true
56497
56501
required:
56498
56502
- avatar
56499
56503
- groups_obj
56500
56504
- is_superuser
56501
56505
- name
56506
+ - password_change_date
56502
56507
- pk
56503
56508
- uid
56504
56509
- username
Original file line number Diff line number Diff line change @@ -158,6 +158,10 @@ export class UserViewPage extends WithCapabilitiesConfig(AKElement) {
158
158
? html `< div > ${ getRelativeTime ( user . lastLogin ) } </ div >
159
159
< small > ${ user . lastLogin . toLocaleString ( ) } </ small > `
160
160
: html `${ msg ( "-" ) } ` ] ,
161
+ [ msg ( "Last password change" ) , user . passwordChangeDate
162
+ ? html `< div > ${ getRelativeTime ( user . passwordChangeDate ) } </ div >
163
+ < small > ${ user . passwordChangeDate . toLocaleString ( ) } </ small > `
164
+ : html `${ msg ( "-" ) } ` ] ,
161
165
[ msg ( "Active" ) , html `< ak-status-label type ="warning " ?good =${ user . isActive } > </ ak-status-label > ` ] ,
162
166
[ msg ( "Type" ) , userTypeToLabel ( user . type ) ] ,
163
167
[ msg ( "Superuser" ) , html `< ak-status-label type ="warning " ?good =${ user . isSuperuser } > </ ak-status-label > ` ] ,
You can’t perform that action at this time.
0 commit comments