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

Small login issue #8

Closed
Luke53 opened this issue Mar 2, 2019 · 9 comments
Closed

Small login issue #8

Luke53 opened this issue Mar 2, 2019 · 9 comments

Comments

@Luke53
Copy link

Luke53 commented Mar 2, 2019

Hi.
Looks like a small logic error on line 87 of Login.py

87: exist = (yield client.db_penguinExists('username', user)) if user != '$fire' and FIREBASE_INIT else True

This throws error from DB.py as it stills try to login even with an invalid penguin name.
If username !='$fire' and FIREBASE_INIT then is firebase is not initialised we will get 0 on this condition and set exist to true.

Can easily be fixed with:

exist = (yield client.db_penguinExists('username', user)) if (user != '$fire' and FIREBASE_INIT == 0) else True

@valid22
Copy link
Contributor

valid22 commented Mar 2, 2019

Thanks for pointing this out! Kudos to you. I'll bring out a fix and update you soon.

@valid22
Copy link
Contributor

valid22 commented Mar 2, 2019

Ref, bdac712

Hope that helps.

@Luke53
Copy link
Author

Luke53 commented Mar 2, 2019

That fixes is. Also quick question did you ever have a glitch with the skate-park lines with testing? I made a server side fix when i was messing around with kitsune but I feel like it is my client.
Also great work this CPPS source looks really great.

@valid22
Copy link
Contributor

valid22 commented Mar 2, 2019

I did experience it during early stages of production, never experienced it then after

@Luke53
Copy link
Author

Luke53 commented Mar 2, 2019

Must be something with my client then because it still occurs with different server sources. Thanks anyway.

@valid22
Copy link
Contributor

valid22 commented Mar 2, 2019

It could still potentially be a server issue idk, I'll check and confirm later, mainly because I was able to fix it before by tweaking server. I doubt if other sources knew that thing was supposed to be implemented on server.
Anyway, marking this issue as fixed.

@valid22 valid22 closed this as completed Mar 2, 2019
@valid22 valid22 pinned this issue Mar 2, 2019
@Luke53
Copy link
Author

Luke53 commented Mar 3, 2019

@valid22 Sorry to bug you again but is there a reason why EPF features were removed? Was it broken?

@valid22
Copy link
Contributor

valid22 commented Mar 3, 2019

Not broken, I don't see the point of having it :male_shrug:
It was meaningful when it had missions, but CP itself abandoned it for years. Only reason to have it was because of its teleportation, but that can be achieved via !jr command.

Still it's just disabled, you can tweak some comments to bring it back alive

@Luke53
Copy link
Author

Luke53 commented Mar 3, 2019

Okay thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants