R
R
ravshan selimov2020-06-16 16:43:52
MySQL
ravshan selimov, 2020-06-16 16:43:52

How to create the first admin account in the database?

How do I create the first admin account in the database? I created an account on my local and just commented on this code.
I'm going to post a website, how do I create an account? I thought to create it directly through phpmyadmin, but the password is stored in a hash.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
FinGanapre, 2020-06-16
@ravshan01

If through phpmyadmin, then nothing prevents you from making a hash yourself :) for example , like this The first thing that came to hand. I think there is more

E
Edward, 2020-06-16
@IS-Builder

Write a condition like

если (id == 1) { апдейт в БД: установить роль админа }

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question