# Catch event for activating account

**URL:** <https://forum.litium.com/t/catch-event-for-activating-account/869>\
**Category:** Questions\
**Tags:** accelerator, litium-7\
**Created:** [May 20, 2019, 10:38am UTC](https://forum.litium.com/t/catch-event-for-activating-account/869 "2019-05-20T10:38:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gonzalo](https://avatars.discourse-cdn.com/v4/letter/g/4bbf92/32.png) [@Gonzalo](https://forum.litium.com/u/Gonzalo)\
**Post date:** [May 20, 2019, 10:38am UTC](https://forum.litium.com/t/catch-event-for-activating-account/869/1 "2019-05-20T10:38:29Z")

</div>

Hi,  
Is there an event to catch this function?

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/0d6646d80a8aaa107678d6d4ea91cec690768d99.png)  
I would like to send an email to the user when this event is triggered.

Thanks in advanced  
Litium version: 7.2

---

<div class="post-metadata">

**Author:** ![steve.redstorm](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/steve.redstorm/32/14_2.png) [@steve.redstorm](https://forum.litium.com/u/steve.redstorm)\
**Post date:** [May 20, 2019, 11:01am UTC](https://forum.litium.com/t/catch-event-for-activating-account/869/2 "2019-05-20T11:01:13Z")

</div>

You need to create an event to fire on change.

---

<div class="post-metadata">

**Author:** ![Gonzalo](https://avatars.discourse-cdn.com/v4/letter/g/4bbf92/32.png) [@Gonzalo](https://forum.litium.com/u/Gonzalo)\
**Post date:** [May 20, 2019, 11:03am UTC](https://forum.litium.com/t/catch-event-for-activating-account/869/3 "2019-05-20T11:03:19Z")

</div>

But would that apply on all changes for all fields?  
Is there a specific event for this?

---

<div class="post-metadata">

**Author:** ![steve.redstorm](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/steve.redstorm/32/14_2.png) [@steve.redstorm](https://forum.litium.com/u/steve.redstorm)\
**Post date:** [May 20, 2019, 11:52am UTC](https://forum.litium.com/t/catch-event-for-activating-account/869/4 "2019-05-20T11:52:22Z")

</div>

Sorry checked now and that property is in dbo.Foundation.User and not sure you can add a event to it. But you can set time on locked out on web.config:  
`</passwordPolicy lockoutCount="-1" lockoutSeconds="300" expirePeriodInDays="-1" complexityRule="false" lengthRule="false" />`  
If you set it to 300 that means 5 minuts and then the account is unlocked so no need for sending email.

---

<div class="post-metadata">

**Author:** ![Gonzalo](https://avatars.discourse-cdn.com/v4/letter/g/4bbf92/32.png) [@Gonzalo](https://forum.litium.com/u/Gonzalo)\
**Post date:** [May 20, 2019, 11:55am UTC](https://forum.litium.com/t/catch-event-for-activating-account/869/5 "2019-05-20T11:55:19Z")

</div>

Thanks for your reply.

I was thinking to build an automated function for webadmin, so they can activate an account and automatically send an email to the user that the account has been activated. Otherwise it should be done manually by the webadmin.
