errorbucket / error-bucket

One Bucket to rule them all
6 stars 0 forks source link

登陆部分逻辑重新整理了一下 #42

Closed codinfox closed 9 years ago

codinfox commented 9 years ago

把验证登陆的逻辑重新整理到ensure-authenticated模块当中,从index.js当中剥离出来,同时使用app.use()避免多次对ensureAuthenticated的调用。