getkirby/getkirby.com

Missing $users->findByKey() on reference page

Closed this issue · 2 comments

Issue with Reference
The docs are missing $users->findByKey() under the reference page.

Expected
The docs should include the method defined in the $user object here. Thank you :)

It's an internal method and thus not documented. Any reason why you don't want to use just $user->find()?

Gotcha. I definitely missed that. I use $user = kirby()->users()->findByKey($email); to determine if the provided email on login belongs to an already existing local user. If nothing is being returned I then query AD.