Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions security/custom_provider.rst
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,13 @@ This is how your ``WebserviceUser`` class looks in action::

return true;
}

// it's recommended to add this method so you can later pass the
// user object to other methods instead of their username
public function __toString()
{
return $this->username;
}
}

If you have more information about your users - like a "first name" - then
Expand Down