Thamer
(Thamer Negro El-Khatib)
2020 年 7 月 7 日午前 12:12
1
How can I generate an API key via console?
I recently tried to test out Memberful in my Discourse, I did tons of mistakes and simply now I can’t access my website even as an administrator.
Memberful is redirecting my login and I deactivated the API key when I was logged on my website.
My idea was to generate again a new API key from the console, integrate again with Memberful and then deactivate correctly everything.
osioke
(Osioke Itseuwa)
2020 年 7 月 7 日午前 8:50
2
Generating an API key would be something along the lines of:
user = ...
api_key = ApiKey.new
api_key.created_by = user
api_key.user = user
api_key.save!
And then you can get the key with api_key.key
「いいね!」 1
Thamer
(Thamer Negro El-Khatib)
2020 年 7 月 7 日午前 11:21
3
Hi @osioke , thanks for your reply.
Can you help me with that steps?? I don’t know where I enter them and neither how. Do I need to enter app ./launcher enter app
and then??
osioke
(Osioke Itseuwa)
2020 年 7 月 7 日午前 11:23
4
You said … via console, so you’d enter it in the console?
Thamer
(Thamer Negro El-Khatib)
2020 年 7 月 7 日午後 12:02
5
Yes, the console I have access on Digital Ocean.
I saw this topic here Setting the api key via console - #9 by Thamer but I don’t know how to write that commands in the console.
simon
2020 年 7 月 7 日午後 5:17
6
It sounds as though you have enabled SSO via Memberful and are now locked out of your account. If this is the case, as an admin you can bypass SSO login. To do that, go to https://forum.example.com/u/admin-login
. Enter your email address into the form that appears. A one time login link will be emailed to you.
「いいね!」 1
system
(system)
クローズされました:
2020 年 8 月 6 日午後 5:17
7
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.