Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ion Auth 4 Get current user #1502

Closed
djphi opened this issue Mar 16, 2021 · 2 comments
Closed

Ion Auth 4 Get current user #1502

djphi opened this issue Mar 16, 2021 · 2 comments

Comments

@djphi
Copy link

djphi commented Mar 16, 2021

Hello. Is there a way to get a current user and no need to use $this->data in all function?
On ion auth 3 i could use $this->ionAuth->user()->row(); at my template, but not now.

@benedmunds
Copy link
Owner

You can use $this->ionAuth->user($id)->row() in your controller and then pass through the user data object to your template.

@benedmunds
Copy link
Owner

Closing due to inactivity. Feel free to re-open if this is still an issue.

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

No branches or pull requests

2 participants