Skip to content

Add users page crashes after accessing as admin due to Zod error #1114

@david-roper

Description

@david-roper

Current Behavior

When an admin tries to add a new user their password gets validated by the pages Zod schema. However it currently passes the admins password as undefined causing the application to crash.

Expected Behavior

System should know admin is already logged in, Zod schema should recognize the password of the admin instead of it being undefined.

Browser

Firefox

Steps To Reproduce

Create a local instance of ODC

Create admin account
Login to admin account
go to add user page
Wait for a few seconds and receive Zod Error from crash screen

Additional Details

Error log can be seen here
add_users_error.json

Priority

Medium

Metadata

Metadata

Assignees

Labels

BugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions