V
V
Vitaly2015-07-04 14:27:02
JavaScript
Vitaly, 2015-07-04 14:27:02

.htaccess how to reset access after a certain time?

Hello, there is access to files through .htaccess by login and password, respectively.
The access file contains about 500 users. After a certain time, it is necessary that the user's access is terminated, for example, 6 months.
The script can also be placed in cron. The question is what kind of script it will be, since I don’t know how specifically to interact with the list of users and their passwords, so that you can then resume access for a separate individual user.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alex Wells, 2018-10-25
@Alex_Wells

Chito? By clicking on the button, entering the name into the search, you change the state (data or vuex) and by click or by event you load the list with your search and sorting, and again write it to the state.
And use already ES2015 :/

M
Maxim Rak, 2018-10-29
@rak1996

If for the sake of experiment, then you can insert json into the page in the script tag in window.myVar, and in vue use
let dataShow = JSON.parse(window.myVar) and then do whatever you want with this data.
BUT. "Correct", I think, will be received via api request

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question