FlexibleLogin [v0.17] for Sponge 7+ - Auth plugin - 2FA


#326

Yes I have tried editing in the configuration file: Bcrypt to totp and it no longer reports the error.
But I still do not understand what is Bcrypt and totp. And what does that error message mean?


#327

BCrypt is for password register and totp for time based two factor codes using an APP on your phone.

That it doesn’t know what this configuration option mean.


#328

After editing into totp, I can not / login password? What should I do next?


#329

image


#330

For TOTP you have to scan the scan the QR Code with your phone using a 2FA app and then you get the login on your phone. If you want password registration you have to clear the database obviously.


#331

Error for register a player :

22.04 20:33:23 [Server] pool-3-thread-221/ERROR [flexiblelogin]: Error creating hash
22.04 20:33:23 [Server] INFO java.lang.NullPointerException: null
22.04 20:33:23 [Server] INFO at com.github.games647.flexiblelogin.Database.createAccount(Database.java:267) ~[Database.class:?]
22.04 20:33:23 [Server] INFO at com.github.games647.flexiblelogin.tasks.ForceRegTask.run(ForceRegTask.java:61) ~[ForceRegTask.class:?]
22.04 20:33:23 [Server] INFO at org.spongepowered.api.scheduler.Task$Builder.lambda$execute$0(Task.java:139) ~[Task$Builder.class:1.12.2-2611-7.1.0-BETA-2990]
22.04 20:33:23 [Server] INFO at org.spongepowered.common.scheduler.SchedulerBase.lambda$startTask$0(SchedulerBase.java:186) ~[SchedulerBase.class:1.12.2-2611-7.1.0-BETA-2990]
22.04 20:33:23 [Server] INFO at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_131]
22.04 20:33:23 [Server] INFO at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_131]
22.04 20:33:23 [Server] INFO at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_131]
22.04 20:33:23 [Server] INFO at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_131]
22.04 20:33:23 [Server] INFO at java.lang.Thread.run(Thread.java:748) [?:1.8.0_131]


#332

Yes, but only for force registers using the admin commands not if the players register on their own. This was already reported (ref) and will be fixed in the next release:


#333

The auto login d’ont work


#334

#335

In case, you didn’t received the notification.


#336

Any way to hide password when players loged in server on console?


#337

Which server software do you use? The sponge API doesn’t provide such a way.


#338

I’m ussing Forge+Sponge.


#339

Which version and what other plugins do you have installed, because I cannot reproduce it.


#340

Perhaps you have configured logging commands in some plugin (nucleus… )


#341

Is there some way I can disable requiring two passwords when 2FA is disabled? I just want a simple password based authentication mechanism but there doesn’t seem to be any config option for that.


#342

Two passwords are only required for registering. It prevents typos.


#343

Wait, do you mean to just enter the same password twice? The way it’s worded, it sounds like a user needs to create and remember two different passwords, and that doesn’t make any sense.


#344

No it the same password twice.


#345

/reg password password
/log password