Skip to content

User Authentication Issue #14

@Benz56

Description

@Benz56

Authenticating a user via the API results in an NPE.

Using spigotsite-api version 0.3.2-SNAPSHOT and spigotsite version 0.4.1-SNAPSHOT.

Authentication:

spigotUser = spigotSiteCore.getUserManager().authenticate(
        username,
        password,
        twofa
);

Causing

java.lang.NullPointerException
	at be.maximvdw.spigotsite.user.SpigotUserManager.authenticate(SpigotUserManager.java:101)
	at be.maximvdw.spigotsite.user.SpigotUserManager.authenticate(SpigotUserManager.java:78)

Caused by the response values being null. Exceptions occurs here:

if (res.getResponseURL().toString().startsWith("https://www.spigotmc.org/login/two-step")) {

Where the response is:
Debug

Similar to issue #13 with some extra details.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions