Questions tagged [waterlock]

A user authentication/json web token management tool, built for Sails.

19 questions
0
votes
1 answer

Set default value to a model(Sails.js)

I am starting to learn Sails.js and I want to know if there is a simpler way to set the default value in a model from a session variable? I am using Waterlock to do authentication and setting the user_id in a session variable like…
Niranjan Sonachalam
  • 1,545
  • 1
  • 20
  • 29
0
votes
1 answer

sails + waterlock, how to implement the workflow with corresponding HTML templates

Background About 6 months ago, I started developing a web app with Sails. I was hoping to easily implement Authentication and Permission using sails-auth or sails-generate-auth and sails-permissions. 6 months later I realize that these modules…
zabumba
  • 12,172
  • 16
  • 72
  • 129
0
votes
1 answer

Sailsjs Waterlock - Set up multiple auth methods

I have been learning how to use SailsJS most effectively, which includes using authentication. After the nightmare that sails-auth gave me, I decided to use Waterlock. I have a default setup with Waterlock. I am trying to use multiple auth…
Kris Molinari
  • 503
  • 6
  • 17
0
votes
1 answer

Waterlock How to Update User In Controller

I'm having a bit of trouble figuring out how to use Waterlock. I'm working with Sails.js and Angularjs, and I'm not sure how to update user attributes on a Waterlock authenticated user in a Sails controller. Should I not write my own controller for…
1
2