Hello,
I try to make a new account using the sign-up link and see the green “Lets get started” button and thats about it. The button does not react. New user registration is allowed in settings. To create a user manually in 'Accounts" does work. The issue is the same if using local IP or public URL. The node.js shell shoes no errors. This is with 1.07. To create and edit ticket works just fine.
Pummelchen
Can you check the browser console? Does it show errors?
Interestingly it moved forward now, where you enter name, Email etc.
But now its stuck here:
## Creating Account...
Please wait while we create your account.
Node.js console shows:
3/15 03:21:28 [380] - debug: message=accounts validation failed: role: Cast to ObjectID failed for value "user" at path "role", message=Cast to ObjectID failed for value "user" at path "role", name=CastError, stringValue="user", kind=ObjectID, value=user, path=role, message=Cast to ObjectId failed for value "user" at path "role", name=CastError, stringValue="user", kind=ObjectId, value=user, path=role, reason=undefined, _message=accounts validation failed, stack=ValidationError: accounts validation failed: role: Cast to ObjectID failed for value "user" at path "role"
at new ValidationError (C:\Dropbox\Projects\TruDesk\trudesk\node_modules\mongoose\lib\error\validation.js:30:11)
at model.Document.invalidate (C:\Dropbox\Projects\TruDesk\trudesk\node_modules\mongoose\lib\document.js:2071:32)
at model.$set (C:\Dropbox\Projects\TruDesk\trudesk\node_modules\mongoose\lib\document.js:1021:10)
at model._handleIndex (C:\Dropbox\Projects\TruDesk\trudesk\node_modules\mongoose\lib\document.js:797:14)
at model.$set (C:\Dropbox\Projects\TruDesk\trudesk\node_modules\mongoose\lib\document.js:743:22)
at model.Document (C:\Dropbox\Projects\TruDesk\trudesk\node_modules\mongoose\lib\document.js:119:12)
at model.Model (C:\Dropbox\Projects\TruDesk\trudesk\node_modules\mongoose\lib\model.js:93:12)
at new model (C:\Dropbox\Projects\TruDesk\trudesk\node_modules\mongoose\lib\model.js:4503:13)
at C:\Dropbox\Projects\TruDesk\trudesk\src\controllers\api\v1\users.js:272:16
at nextTask (C:\Dropbox\Projects\TruDesk\trudesk\node_modules\async\dist\async.js:5324:14)
at Object.waterfall (C:\Dropbox\Projects\TruDesk\trudesk\node_modules\async\dist\async.js:5334:5)
at apiUsers.createPublicAccount (C:\Dropbox\Projects\TruDesk\trudesk\src\controllers\api\v1\users.js:268:9)
at Layer.handle [as handle_request] (C:\Dropbox\Projects\TruDesk\trudesk\node_modules\express\lib\router\layer.js:95:5)
at next (C:\Dropbox\Projects\TruDesk\trudesk\node_modules\express\lib\router\route.js:137:13)
at middleware.checkOrigin (C:\Dropbox\Projects\TruDesk\trudesk\src\middleware\middleware.js:167:10)
at Layer.handle [as handle_request] (C:\Dropbox\Projects\TruDesk\trudesk\node_modules\express\lib\router\layer.js:95:5)
at next (C:\Dropbox\Projects\TruDesk\trudesk\node_modules\express\lib\router\route.js:137:13)
at middleware.checkCaptcha (C:\Dropbox\Projects\TruDesk\trudesk\src\middleware\middleware.js:147:10)
at Layer.handle [as handle_request] (C:\Dropbox\Projects\TruDesk\trudesk\node_modules\express\lib\router\layer.js:95:5)
at next (C:\Dropbox\Projects\TruDesk\trudesk\node_modules\express\lib\router\route.js:137:13)
at Route.dispatch (C:\Dropbox\Projects\TruDesk\trudesk\node_modules\express\lib\router\route.js:112:3)
at Layer.handle [as handle_request] (C:\Dropbox\Projects\TruDesk\trudesk\node_modules\express\lib\router\layer.js:95:5), name=ValidationError
Maybe helps to note that this runs with MongoDB 4.0.6.
Yes that is a valid bug. Can you make a github issue for it. I’ll get it fixed.