# How to re-authenticate a logged in user before performing a dangerous action (enter password)?

**URL:** <https://community.auth0.com/t/how-to-re-authenticate-a-logged-in-user-before-performing-a-dangerous-action-enter-password/22080>\
**Category:** Get Help\
**Tags:** rails, rails-api\
**Created:** [March 4, 2019, 4:32pm UTC](https://community.auth0.com/t/how-to-re-authenticate-a-logged-in-user-before-performing-a-dangerous-action-enter-password/22080 "2019-03-04T16:32:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![euggrie](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/euggrie/32/11509_2.png) [@euggrie](https://community.auth0.com/u/euggrie)\
**Post date:** [March 4, 2019, 4:32pm UTC](https://community.auth0.com/t/how-to-re-authenticate-a-logged-in-user-before-performing-a-dangerous-action-enter-password/22080/1 "2019-03-04T16:32:35Z")

</div>

Hi! Sorry in advance if this question has been answered before, I’m new to Auth0 and I’ve been browsing the documentation but I can’t find a find to solve my problem.

I have a regular web application implemented with Rails, and I need to verify the user password before continuing with a specific action (deleting an object). The user is already logged in at this stage so it’s just an extra security step to make sure the user is aware of the consequences.

Currently a user will see a popup requiring to enter their password before continuing, and if this matches their db information, the object will be deleted.

Is there a way to implement this with Auth0 if I’m using a database connection?

Many thanks!

---

<div class="post-metadata">

**Author:** ![markd](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/markd/32/38919_2.png) [@markd](https://community.auth0.com/u/markd)\
**Post date:** [March 4, 2019, 6:12pm UTC](https://community.auth0.com/t/how-to-re-authenticate-a-logged-in-user-before-performing-a-dangerous-action-enter-password/22080/2 "2019-03-04T18:12:25Z")

</div>

Hello @euggrie,

This information on step-up authentication might be helpful:

[https://auth0.com/docs/multifactor-authentication/step-up-authentication](https://auth0.com/docs/multifactor-authentication/step-up-authentication)

---

<div class="post-metadata">

**Author:** ![euggrie](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/euggrie/32/11509_2.png) [@euggrie](https://community.auth0.com/u/euggrie)\
**Post date:** [March 4, 2019, 6:24pm UTC](https://community.auth0.com/t/how-to-re-authenticate-a-logged-in-user-before-performing-a-dangerous-action-enter-password/22080/3 "2019-03-04T18:24:01Z")

</div>

I think this is exactly what I needed, thank you for your help! 🙂

---

<div class="post-metadata">

**Author:** ![markd](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/markd/32/38919_2.png) [@markd](https://community.auth0.com/u/markd)\
**Post date:** [March 4, 2019, 6:34pm UTC](https://community.auth0.com/t/how-to-re-authenticate-a-logged-in-user-before-performing-a-dangerous-action-enter-password/22080/4 "2019-03-04T18:34:04Z")

</div>

Awesome! Let us know how you make out.

Cheers!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [August 30, 2019, 9:45am UTC](https://community.auth0.com/t/how-to-re-authenticate-a-logged-in-user-before-performing-a-dangerous-action-enter-password/22080/5 "2019-08-30T09:45:03Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
