Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug login errors and force-password-change message #3484

Merged
merged 2 commits into from
Feb 8, 2018

Conversation

ger-benjamin
Copy link
Member

@ger-benjamin ger-benjamin commented Feb 5, 2018

First commit fix a $compile:multiling Linking Element Multiple Times angular error.

Second commit fix: #3278
The problem is that the READY event was not emitted on login (but I need it, and it looks not problematic to emit it at the same time as the LOGIN event.) Then, the problem is that the "soft" reload of the page remove the notification, I've used a timeout to avoid this problem. If you know a better method...

Avoid AngularJs error: $compile:multilink Linking Element Multiple Times
@ger-benjamin ger-benjamin changed the title Debug login Debug login errors and force-password-change message Feb 5, 2018
@ger-benjamin ger-benjamin self-assigned this Feb 5, 2018
@ger-benjamin ger-benjamin added this to the 2.2 milestone Feb 5, 2018
Copy link
Member

@llienher llienher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

About the timeout, just open question. Is it not possible to emit the event just after the 'soft' reload (as we know this state happens when we log) ? That would remove the need for timout, but I'm not sure if it is even possible or hard to implement this way... Maybe timemout is just the easier/logical way to handle this.

@ger-benjamin
Copy link
Member Author

I thought that the reste was done in the abstract controller, and it this case, it should be hard to debug on your way @llienher . But in fact, the problem was just a reset function (in the auth directive) called before the event was launched.

I've reworked the second commit. Now the solution is far more logical and suits me.

Copy link
Member

@llienher llienher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good, to me it is fine now.

@ger-benjamin ger-benjamin merged commit 4ff16fd into camptocamp:2.2 Feb 8, 2018
@ger-benjamin ger-benjamin deleted the debug_login branch February 8, 2018 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants