games647 / FlexibleLogin

A Sponge minecraft server plugin for second factor authentication
https://forums.spongepowered.org/t/8872
MIT License
87 stars 22 forks source link

Entrance without registration #96

Closed ziceptor closed 6 years ago

ziceptor commented 6 years ago

With these settings, the player can log in without registering. Also on behalf of another player.

permissions

  "permissions": [
    "flexiblelogin.bypass",
    "flexiblelogin.command.changepw",
    "flexiblelogin.command.login",
    "flexiblelogin.command.logout",
    "flexiblelogin.command.register",
    {
      "flexiblelogin.no_auto_login": {
        "value": false
      }
    },

config

# Do you allow your users to skip authentication with the bypass permission
bypassPermission=true
ipAutoLogin=false
playerPermissions=true
games647 commented 6 years ago

Therefore the bypass permission exists.

ziceptor commented 6 years ago

How to configure for registration, but bypass only /log

games647 commented 6 years ago

Could provide an example for a use case?

ziceptor commented 6 years ago

A new player must register. And to log in /log once. After should automatically connect.

games647 commented 6 years ago

But why should the player then register in the first place?

ziceptor commented 6 years ago

Not sure I understand the question.

ziceptor commented 6 years ago

ipAutoLogin=true How does it work?

games647 commented 6 years ago

Why should players register and then don't have to login?

IpAutoLogin will automatically login players if they come from the same IP-address within a 24 hour time frame.

ziceptor commented 6 years ago

Thank You! I just forgot about it. 've already set up. Works.