If I understand your intent from looking at the github repo, Why not just use DISCOURSE_DEVELOPER_EMAIL and then when a user is created with that email address they are automatically an admin.
pfaffman
(Jay Pfaffman)
2
נושאים קשורים
| נושא | תגובות | צפיות | פעילות | |
|---|---|---|---|---|
| Bulk creating users with rails etc | 10 | 1094 | 14 באוקטובר, 2023 | |
| SOLVED: Unable to Grant Admin or Grant Moderator to existing users | 2 | 3816 | 17 בינואר, 2015 | |
| Created a user from command line. Supposedly active, but isn't? | 1 | 134 | 31 בינואר, 2026 | |
| What is the Rails command to create an admin user in Discourse? | 9 | 2401 | 10 באפריל, 2020 | |
| Rake task for merging users | 61 | 15158 | 12 באוגוסט, 2022 |