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
Here is the code in password.js I am talking about:
.get('getRegisterPath',"the registration page's uri path.").step('displayRegister').accepts('req res next').promises(null).displayRegister(function(req,res){console.log('\r\n displayRegister base');returnrenderRegister.apply(this,arguments);})
Here is how I thought it could be overriden in my everyauth code:
This is all fine and my 'console.log('\r\n displayRegister child');' gets called. But, the problem is the base method in password.js needs to be called as well.
Basically, how do I call the base implementation of the method?
The reason I am doing this is because I want to inject some custom business logic before allowing access to the registeruser path. I want to make sure the user is logged in and belongs to an 'administrator' role. So, basically, I am hiding the registeruser path for non admins. I know this is probably not how everyauth registration is intended to work, but I am wondering if it can be done using the displayRegister method.
The text was updated successfully, but these errors were encountered:
Here is the code in password.js I am talking about:
Here is how I thought it could be overriden in my everyauth code:
This is all fine and my 'console.log('\r\n displayRegister child');' gets called. But, the problem is the base method in password.js needs to be called as well.
I've tried the following and it didn't work:
Basically, how do I call the base implementation of the method?
The reason I am doing this is because I want to inject some custom business logic before allowing access to the registeruser path. I want to make sure the user is logged in and belongs to an 'administrator' role. So, basically, I am hiding the registeruser path for non admins. I know this is probably not how everyauth registration is intended to work, but I am wondering if it can be done using the displayRegister method.
The text was updated successfully, but these errors were encountered: