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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

General

Plugin onLogin event

Solved by Makary View solution

Started by Arpega 7 years ago · 1 replies · 440 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 Jerry Hunt, 4 days ago
2 80 9 hours ago
General · by pamtbaau, 14 hours ago
1 51 13 hours ago
General · by Andy Miller, 1 day ago
0 44 1 day ago
General · by Marcel, 12 months ago
6 346 5 days ago
General · by Duc , 5 days ago
3 40 5 days ago