Skip to content

EasyAuth login and create user usage issue #6

@zaynyatyi

Description

@zaynyatyi

I'm trying to use easyAuthApi and started getting that

RServerSideException(com.nailedgames.tzd.app.api.SignupApi.loginUser(zbot01,123456),
Trying to access session data before init() has been run,
Called from ufront/web/session/FileSession.hx line 329
Called from ufront/auth/EasyAuth.hx line 152
Called from ufront/auth/EasyAuth.hx line 139
Called from ufront/auth/api/EasyAuthApi.hx line 30
Called from com/nailedgames/tzd/app/api/SignupApi.hx line 43
Called from a C function Called from ufront/api/UFAsyncApi.hx line 95
Called from ufront/api/UFAsyncApi.hx line 140)

The code is just

public function loginUser(name:String, password:String):Int
{
authApi.attemptLogin(name, password).sure();
ufTrace("logged in:" + auth.isLoggedIn());
return 0;
}

how should i init auth Api or session?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions