Node.jsï¼Expressã®ç°å¢ã§Passportã使ã£ã¦èªè¨¼å¦çãè¡ã£ãå¾ãåºå®ã®ãã¼ã¸ã§ã¯ãªããè¦æ±ããããã¼ã¸ã«ãªãã¤ã¬ã¯ããããæ¹æ³ã§ãã ä¾ãã°ãããã°ã¤ã³ç»é¢ãããããããç»é¢ãã«é·ç§»ãã¦ãã®å ã«ãè¨å®ç»é¢ããããå ´åãä¸è¨ã®Node.js+Expressã®ç°å¢ã§èªè¨¼æ©è½ãå®è£ ããã§ã¯ããã°ã¤ã³å¾ãå¿ ãããããç»é¢ãã表示ããã¦ãã¾ãããããããè¨å®ç»é¢ãã®ã¢ãã¬ã¹ã§ã¢ã¯ã»ã¹ãã¦ããæã¯ãã°ã¤ã³å¾ã«ãè¨å®ç»é¢ãã¸é·ç§»ããã¾ãã Node.js+Expressã®ç°å¢ã§èªè¨¼æ©è½ãå®è£ ãã ç¹å®ã®ãã¼ã¸ã®ã¿ã§ããã°ãåã«ã¼ãã£ã³ã°ã§èªè¨¼ãè¨è¿°ããã°ããã§ããå¤ãã®ãã¼ã¸ã§å ±éã®èªè¨¼ç¢ºèªãå©ç¨ãããå ´åã¯æ¬¡ã®ããã«ãã¾ãã å¤æ´å app.post('/login', passport.authenticate('local', { failureRedirect: 'login.
{{#tags}}- {{label}}
{{/tags}}