Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with Signing in and Creating Accounts #1

Open
rtarson opened this issue Apr 12, 2019 · 8 comments
Open

Problem with Signing in and Creating Accounts #1

rtarson opened this issue Apr 12, 2019 · 8 comments

Comments

@rtarson
Copy link

rtarson commented Apr 12, 2019

Hi,

I have been trying to install your dashboard using npm does not work. I get stuck at doing npm knex migrate:latest.

So instead I have installed yarn was able to use that successfully. But now I have it running and it render the pages all okay. But when it comes to functionality it is not working. I just installed so not really sure really sure where to dig in first to fix. Or if it is because I am using yarn.

Here is the error I am getting when I preform password change, register user, login, etc...
Note* In my postgresdb it does show that the users that I created were created.

TypeError: Cannot set property 'messages' of undefined
    at createUser (/home/rtarson/www/dashboard/public_html/features/register/commands/create-user.js:18:24)
@rtarson rtarson changed the title Problem with Signing in a Creating Accounts Problem with Signing in and Creating Accounts Apr 12, 2019
@Ray-Sutton

This comment has been minimized.

@brownpaint
Copy link

I purchased the PRO version and came up against similar issue when trying to login

TypeError: Cannot set property 'messages' of undefined

But my error message points to the file: verify-request-body.js

@MwSpaceLLC
Copy link

Today i have same problem, but fix as follow =)

image

If the session stored on redis, but u not configure the session storage. system can't save the session.
simple, now work perfect!!

image

image

@brittni27
Copy link

thanks @MwSpaceLLC this worked for me!

@sanket9192
Copy link

@MwSpaceLLC i tried the above code that you wrote in app.js. it is giving the following error.

Error: secret option required for sessions
at session (/Users/sanketpatel/WebstormProjects/argon-dashboard-nodejs/node_modules/express-session/index.js:200:12)
at Layer.handle [as handle_request] (/Users/sanketpatel/WebstormProjects/argon-dashboard-nodejs/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/Users/sanketpatel/WebstormProjects/argon-dashboard-nodejs/node_modules/express/lib/router/index.js:317:13)
at /Users/sanketpatel/WebstormProjects/argon-dashboard-nodejs/node_modules/express/lib/router/index.js:284:7
at Function.process_params (/Users/sanketpatel/WebstormProjects/argon-dashboard-nodejs/node_modules/express/lib/router/index.js:335:12)
at next (/Users/sanketpatel/WebstormProjects/argon-dashboard-nodejs/node_modules/express/lib/router/index.js:275:10)
at SendStream.error (/Users/sanketpatel/WebstormProjects/argon-dashboard-nodejs/node_modules/serve-static/index.js:121:7)
at SendStream.emit (events.js:310:20)
at SendStream.error (/Users/sanketpatel/WebstormProjects/argon-dashboard-nodejs/node_modules/send/index.js:270:17)
at SendStream.onStatError (/Users/sanketpatel/WebstormProjects/argon-dashboard-nodejs/node_modules/send/index.js:421:12)
at next (/Users/sanketpatel/WebstormProjects/argon-dashboard-nodejs/node_modules/send/index.js:764:28)
at /Users/sanketpatel/WebstormProjects/argon-dashboard-nodejs/node_modules/send/index.js:772:23
at FSReqCallback.oncomplete (fs.js:167:21)

@sanket9192
Copy link

Solved the error. I have to remove the RedisStore configuration from app.js.

@mufaawan
Copy link

Anyfix for the problem without removing RadisStore configuraitons?

@Ray-Sutton
Copy link

Here's my app.js file, and my RedisStore function works fine. Make sure you install the npm package as well.
app.js.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants