Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Plugin onLogin event

Solved by Makary View solution

Started by Arpega 7 years ago · 1 replies · 764 views
7 years ago

Hi,

I try to add some infos in session but i need to add it when someone's login.
Is there an event as onLogin() which permit it?

Thank you!

👍 1
7 years ago Solution

Hi there!
There is extensive documentation provided on how to make plugins 🙂

ℹ️ Here is really simple and friendly guide on how to start creating them

📚 Here you have technical details on each and every event / hook available in Grav Core

And finaly if you need hooks for user authentication you should take a look at

🔒 grav-plugin-login on GitHub

-- as it is most popular authentication solution for Grav, and it provides a whole lot of related hooks, like:

MARKDOWN
onUserLogin
onUserLoginRegistered

And many more! :)

Also, you may want to take a look at Grav API as it contains definition of almost every object and class used in Core, as well as many for other plugins.

Hope you'll find in the above documents all the guidelines you need, and I really, really hope that when your plugin is redady you will show it to us!
Cheers!

👍 2

Suggested topics

Topic Participants Replies Views Activity
General · by themetman, 23 hours ago
2 40 16 hours ago
General · by Hanns Mattes, 1 week ago
0 121 1 week ago
General · by Karmalakas, 1 week ago
2 185 1 week ago
General · by Hanns Mattes, 3 weeks ago
0 235 3 weeks ago
General · by Dima, 4 weeks ago
1 211 4 weeks ago