エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
sails (v0.8.82) + passport + passport-local Rough Example. For the love of all that is holy, don't use this in production.
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
sails (v0.8.82) + passport + passport-local Rough Example. For the love of all that is holy, don't use this in production.
application.js ௭� V p�1� V // config/application.js var passport = require('passport') , LocalStr... 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