Closed Jakobovski closed 9 years ago
Awesome! Thanks for taking the time to create a fix :) If you send me a pull request I'll accept it right away.
Pull request created see https://github.com/fnakstad/angular-client-side-auth/pull/89
I just merged it. Thanks for taking the time to submit a PR :)
I just cloned the repro and no matter what I try I get the: "Oh no! Acces undefined for this state" error. I haven't fully mastered the code yet, so I can't give an explanation of the possible cause. But when I looked at the live demo (http://angular-client-side-auth.herokuapp.com/) I noticed that the following piece:
if(!("data.access" in toState)){
$rootScope.error = "Access undefined for this state";
event.preventDefault();
}
was missing from the app.js. When I removed this piece I was able to fiddle around with the page.
Probably not related, but another thing that I noticed when running the server:
body-parser deprecated urlencoded: explicitly specify "extended: true" for extended parsing server.js:19:20
An error is thrown in
app.js
on line 142 whentoState.data
isundefined
.Something like this would solve the problem:
With approval I would be happy to make the changes and create a merge request.