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

Successful login message on register #1052

Open
Twonox opened this issue Jan 4, 2017 · 9 comments
Open

Successful login message on register #1052

Twonox opened this issue Jan 4, 2017 · 9 comments

Comments

@Twonox
Copy link
Contributor

Twonox commented Jan 4, 2017

1483531302-2017-01-04-130119.png - envoi d'image avec NoelShack
Is it normal that it have successful login message on register ?

@sgdc3
Copy link
Member

sgdc3 commented Jan 4, 2017

I think it's fine @ljacqu

@ljacqu
Copy link
Member

ljacqu commented Jan 4, 2017

@sgdc3 Agreed as this is a border case. Handling this case specifically = ugly code that will have to be maintained.

However, @Twonox @sgdc3, I have a counter proposition—as an enhancement (and an easy pick story 😉) we could distinguish between when a user is force logged in vs. logged in because of his own actions.

  • If the player logs in because he used /login, everything stays as before (i.e. if successful -> "Successful login!" message)
  • If the player is logged in due to other circumstances (after registration, API use, /authme forcelogin), he receives another message (e.g. "You have been logged in")

-> Same could be done for unregistering. If an admin unregisters a player, the player will get the message "Successfully unregistered!" which is a little weird.

@Twonox
Copy link
Contributor Author

Twonox commented Jan 4, 2017

Mhmm why not.

@sgdc3
Copy link
Member

sgdc3 commented Jan 5, 2017

It's fine for me ;)

@sgdc3 sgdc3 added this to the 5.3 Snapshot milestone Jan 5, 2017
@Twonox
Copy link
Contributor Author

Twonox commented Jan 5, 2017

@ljacqu I don't appreciate that
1483531302-2017-01-04-130119.png - envoi d'image avec NoelShack

and that
1483653602-2017-01-05-225420.png - envoi d'image avec NoelShack

The better thing for me it's to sent only one message: only successful register message and session message, without successful login message.
I will appreciate if you undo this (and if you find a solution to maintain easily the code).

@ljacqu
Copy link
Member

ljacqu commented Jan 6, 2017

I will appreciate if you undo this

Do you mean to say that this came when we added the registration type settings? I will check, but the fix will probably only make it in 5.3.

@Maxetto
Copy link
Contributor

Maxetto commented Jan 29, 2017

I guess this is related, Console login messages are printed more than once.
At register:

29.01 16:24:39 [Server] INFO ProGirl100 registered (IP)
29.01 16:24:39 [Server] INFO ProGirl100 logged in!

At server switch:

29.01 16:47:41 [Server] INFO GalaxyDoritoMC logged in!
29.01 16:47:42 [Server] INFO GalaxyDoritoMC logged in!

Login messages printed twice (or even three times) are due to FastLogin and BungeeAuthMeBridge sending new login thru the API.

@SaitDev
Copy link

SaitDev commented Apr 27, 2017

Also got the message Logged-in due to Session Reconnection, but just got it few times not everytime I loggin.
Using version 5.2 latest release. sessions.enabled is false. No bungge server and no FastLogin.
Did it cause by other plugins that call authme api?

@ljacqu ljacqu removed this from the 5.3 milestone Apr 29, 2017
@ljacqu
Copy link
Member

ljacqu commented Apr 29, 2017

@SaitDev this kind of seems like the only possibility; if this problem continues please don't hesitate to create a separate issue about this.

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

No branches or pull requests

5 participants