Skip to content
Grav 2.0 is officially stable. Read the announcement →
General

Plugin onLogin event

Solved by Makary View solution

Started by Arpega 7 years ago · 1 replies · 510 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 ian russell, 5 days ago
2 125 4 days ago
General · by pamtbaau, 1 month ago
2 378 1 week ago
General · by Hanns Mattes, 1 month ago
2 359 2 weeks ago
General · by Andy Miller, 1 month ago
0 260 1 month ago
General · by Jerry Hunt, 1 month ago
2 401 1 month ago