You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/users-notes/users-notes.rst
+4-33Lines changed: 4 additions & 33 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,41 +25,12 @@ How to change chirpstacks admin password
25
25
Step-by-step:
26
26
############
27
27
28
-
1. Create a user (e.g. [email protected]) in Chirpstack with the wanted password.
29
-
2. Change the password_hash for ’admin’ in the postgres-database:
30
-
a. SSH into the server
31
-
b. docker exec -it os2iot-docker_postgresql_1 sh
32
-
c. psql -U chirpstack_as
33
-
d. update public.user set password_hash = (select password_hash from public.user where email = '[email protected]') where id=1;
34
-
e. Now the user has been updated
35
-
3. Delete the user created in step 1
28
+
1. Log in to the ChirpStack Application Server web interface using the default credentials
29
+
2. Change the password of the admin user under: 'All users' -> 'admin' -> 'Change Password'
36
30
31
+
In previous versions of ChirpStack Application Server it wasn't possible to change the admin user password through the UI, but since v.3.13.0 this as worked as expected.
37
32
38
-
39
-
Background information:
40
-
######################
41
-
42
-
43
-
In order for OS2iot to function, there must be an admin user in chirpstack named admin. This is because Chirpstacks API requires an JWT including ’username’. You can read about JWT here: https://jwt.io/ and decode:
That is, if the username is changed the JWT will not work anymore.
59
-
60
-
Chirpstack requires that all its users has an e-mail, when they are created or changed (Including change of password). Nevertheless, when the application is created the first time / the database is created this is not a requirement. This is why you will not be able to change the password using Chirpstacks UI.
61
-
62
-
It is possible to change the requirement that the user must be named admin here:
33
+
Alternatively the Admin user can removed and replaced by another user entirely. This requires changing the user name that OS2iot-backend uses:
0 commit comments