Skip to content

Return error if userObject is not found#37

Open
Danielss89 wants to merge 5 commits intogoalio:masterfrom
Danielss89:master
Open

Return error if userObject is not found#37
Danielss89 wants to merge 5 commits intogoalio:masterfrom
Danielss89:master

Conversation

@Danielss89
Copy link
Copy Markdown
Collaborator

@Danielss89 Danielss89 commented Aug 6, 2016

Right now it results in a fatal error.

$this->setSatisfied(false);

$e->setCode(AuthenticationResult::FAILURE)
->setMessages(array('User not found.'));
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this the message needs to be an class constant as wel??

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not in constants in the other cases, so it's not in the scope of this ticket to move it :)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed.
Let's merge this change

),

'factories' => array(
'goaliorememberme_rememberme_service' => function ($sm) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the factories should move to separate file so we dion't break the caching of this.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants