[IMP] Website Themes - Setup
- Use the right code-block language for terminal command line - Add a step about the 2-factor authentication
This commit is contained in:
parent
0287a4b629
commit
dd1921204b
@ -155,24 +155,31 @@ Database setup
|
|||||||
|
|
||||||
Create an empty database.
|
Create an empty database.
|
||||||
|
|
||||||
.. code-block:: xml
|
.. code-block:: bash
|
||||||
|
|
||||||
createdb <database_name>
|
createdb <database_name>
|
||||||
|
|
||||||
Import the SQL file in the database that you just created.
|
Import the SQL file in the database that you just created.
|
||||||
|
|
||||||
.. code-block:: xml
|
.. code-block:: bash
|
||||||
|
|
||||||
psql <database_name> < dump.sql
|
psql <database_name> < dump.sql
|
||||||
|
|
||||||
Reset the admin user password.
|
Reset the admin user password.
|
||||||
|
|
||||||
.. code-block:: xml
|
.. code-block:: bash
|
||||||
|
|
||||||
psql \c
|
psql \c
|
||||||
<database_name>
|
<database_name>
|
||||||
update res_users set login='admin', password='admin' where id=2;
|
update res_users set login='admin', password='admin' where id=2;
|
||||||
|
|
||||||
|
If necessary, disable the two-factor authentication enforcing policy option.
|
||||||
|
|
||||||
|
.. code-block:: bash
|
||||||
|
|
||||||
|
psql <database-name>
|
||||||
|
update res_users set top_secret='' where id=2;
|
||||||
|
|
||||||
Getting started
|
Getting started
|
||||||
===============
|
===============
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user