Correct HttpMethod to reset internal data

I am currently building a web api. The authentication is based on keys which are set in the database.

However, these keys could be changed someday, e.g. when a user should be banned from the system. Currently the data is read once on startup of the server/application.

My question is, how I can reset this data without the need to restart the application?

The data itself is a private backing-field which is only initialized when not set (as on startup). I now want to reset the data by just setting the data to null which will reload it from the database on the next call/access.

What would be the correct method in terms of REST?

As far as I have understood, none of the methods are “correct” as I don’t create, update or delete a resource.

For me DELETE would be the choice as I delete the internal data.

Any thoughts?

Magento2: How to get Reset password link in custom email template

How to get Reset password link in the custom email template? I am able to get a token like this –

$  customToken = $  this->_userHelper->generateResetPasswordLinkToken(); $  reset_password_link = $  baseUrl.'customer/account/createpassword/?token='.$  customToken; 

but when click then getting a message like this “Reset password link has expired”

Root User Cannot Reset Another Users Password

I wanted to enable Root user on macOS Mojave Version 10.14.4 so that i can use it in case another users or admins lose their login credentials. I tried this and when i tested out password reset for an admin user i get the following:

enter image description here

I am not sure why root user fails to reset a password of another user, in my case it was an admin account, but the on the other hand the admin user is able to reset another admins password. I dont mind settling for having an admin account to actually serve as a reset password alternative but i am very curious why i cant reset a password with a root user. Any feedback is welcomed.

Thank you for taking your time to comment on this post!

Mac info:

  • MacBook Pro (15-inch, 2018)

  • Disk is encrypted with FileVault

I want to reset my whole Ubuntu OS and wipe disk through command line?

My questions is about how to reset Ubuntu to its factory settings. I recently installed a gaming panel to manage servers and I am new to Linux. I am having some problems with it and would like to just delete and reinstall the panel on my Linux machine. Is there a way to completely reset the whole filesystem and restore the whole machine to its default/facotry settings state? (e.g. no packages installed, RootFS restored, all the stuff)

How to completely reset or remove and restore Safari in Mojave

Safari is bugged in my macbook. It’s a macbook air 2019 with mojave 10.14.5

The problem is I can’t delete bookmarks nor save new ones on it because it ask to keep or remove firefox bookmarks, which according to Safari, where imported on january 1st 4001.

safari date error

I’ve pressed every button, but nothing happens

I’ve tried deleting the cache and even restoring to another mac my timemachine backup to see if it’s solved, but no, so before I tried to reinstall from zero, I would like to know if I can do something else.