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

warn: Action middleware (POLICY: passport) was bound to a target auth/* that doesn't match any registered actions. #169

Open
fyarepo opened this issue Jul 16, 2018 · 2 comments

Comments

@fyarepo
Copy link

fyarepo commented Jul 16, 2018

Hi,
Created brand new sails project and sails-auth-new --s and sails lift.
The warning messages are below. What can we do?
Regards
gab

======================================
debug: marlinspike (auth): loading Models...
debug: marlinspike (auth): loading Controllers...
debug: marlinspike (auth): loading Policies...
warn: Action middleware (POLICY: passport) was bound to a target auth/* that doesn't match any registered actions.

warn: Ignored attempt to bind route (/register) to unknown action :: { controller: 'UserController',
action: 'create',
skipAssets: true }
warn: Ignored attempt to bind route (/logout) to unknown action :: { controller: 'AuthController',
skipAssets: true,
action: 'logout' }
warn: Ignored attempt to bind route (/auth/local) to unknown action :: { controller: 'AuthController',
skipAssets: true,
action: 'callback' }
warn: Ignored attempt to bind route (/auth/local/:action) to unknown action :: { controller: 'AuthController',
skipAssets: true,
action: 'callback' }
warn: Ignored attempt to bind route (/auth/:provider) to unknown action :: { controller: 'AuthController',
skipAssets: true,
action: 'callback' }
warn: Ignored attempt to bind route (/auth/:provider) to unknown action :: { controller: 'AuthController',
skipAssets: true,
action: 'provider' }
warn: Ignored attempt to bind route (/auth/:provider/callback) to unknown action :: { controller: 'AuthController',
skipAssets: true,
action: 'callback' }
warn: Ignored attempt to bind route (/auth/:provider/:action) to unknown action :: { controller: 'AuthController',
skipAssets: true,
action: 'callback' }
warn: Ignored attempt to bind route (/auth/:provider/:action) to unknown action :: { controller: 'AuthController',
skipAssets: true,
action: 'callback' }

@alexmndzdev
Copy link

Any solution?

@arunkamboj
Copy link

You need to generate the controller again.
Just rename your existing controller with another name and register the controller again using below command.

sails generate controller ControllerName

Example
sails generate controller User
it will create UserContoller.js

Thanks and Regards
Arun Kamboj

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

3 participants