Posts by Wellington Alves • 21 points
4 posts
-
1
votes0
answers34
viewsQ: Accessing private property with typescript Decorator
In Typescript, is it possible to access a private property from the developer? An example of the code I’ve already made class A { @dec private _teste: string = 'teste' constructor(){} public get…
-
0
votes1
answer132
viewsA: Passport forwarding error with express 4
I actually found my error, in the deserializeUser function, I was passing the wrong parameter and 'error' was my user object and 'user' was the error generated if the user was not found. So I was…
-
0
votes1
answer221
viewsA: Passport-local and Passport always returns false
How are the names of your inputs? They should be the same as the default Passport, or you can set with passport.use('login', new LocalStrategy({ // por padrão, local strategy usa username e password…
-
1
votes1
answer132
viewsQ: Passport forwarding error with express 4
I am having problems after user authenticate in form. Passport redirects to the root again, however it does not pass to the express GET of the route '/' and displays [Object Object]. If use…