You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: api/policies/isLoggedIn.js
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,9 @@
1
1
constmoment=require('moment-timezone');
2
2
3
+
// Standardize messages; not just for ease of change...
4
+
constinvalid='Invalid credentials.';
5
+
constnotLoggedIn='You are not logged in';
6
+
3
7
module.exports=asyncfunction(req,res,next){
4
8
constsessionId=req.signedCookies[sails.config.session.name]||null;// signed cookies: https://sailsjs.com/documentation/reference/request-req/req-signed-cookies
Copy file name to clipboardExpand all lines: setup.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,7 @@ if (fs.existsSync(configPath)) {
40
40
constanswer=awaitprompts({
41
41
type: 'confirm',
42
42
name: 'moveOn',
43
-
message: 'A `local.js` config file already exists. Continuing will completely rewrite this file. Are you sure you want to continue?',
43
+
message: 'A `local.js` config file already exists. Continuing will completely rewrite this file (using the values from this config file as defaults). Are you sure you want to continue?',
0 commit comments