application.js ௭� V p�1� V // config/application.js var passport = require('passport') , LocalStrategy = require('passport-local').Strategy; // some static users var users = [ { id: 1, username: 'bob', password: 'secret', email: 'bob@example.com' } , { id: 2, username: 'joe', password: 'birthday', email: 'joe@example.com' } ]; // helper functions function findById(id, fn) { var idx = id - 1; if (u
![sails (v0.8.82) + passport + passport-local Rough Example. For the love of all that is holy, don't use this in production.](https://cdn-ak-scissors.b.st-hatena.com/image/square/1ef26f6cb4349557952890dbe3e567f7f98dc151/height=288;version=1;width=512/https%3A%2F%2Fgithub.githubassets.com%2Fassets%2Fgist-og-image-54fd7dc0713e.png)