500 error on first time user setup: token is undefined

Description

When setting up a system admin user for the first time, if there are validation errors with the form submission, a 500 error is thrown, "token" is undefined. The code below is the problem (see undeclared token variable):

Environment

None

Assignee

Dominic Watson

Reporter

Dominic Watson

Labels

None

Accepted

Yes

Fix versions

Priority

Medium
Configure