Can't input curseforge api key, only remove the official one
TheK0tYaRa opened this issue · comments
Operating System
Linux
Version of PolyMC
PolyMC 5.1
Version of Qt
Qt 5.15.11
Description of bug
The field should accept text inputs, but it only allows for deletion of text.
Steps to reproduce
- Fetch official api keys.
- Try deleting text from that field.
- try writing or pasting text into that field.
Suspected cause
I think someone mis-configured the field in qt-quick.
This issue is unique
- I have searched the issue tracker and did not find an issue describing my bug.
That field is checked for a regex pattern every time you input something, so that's why you can't write anything you want. The first 4 characters must be $2a$
, after that you can write anything you want, but unless you have your own valid key, Curseforge features won't work properly with an invalid key.
The field rejects invalid keys. You can't just type any random thing there.
Before you ask - no i did not check out the current git package from aur
The field rejects invalid keys.
Well it rejected the one from the api page in my profile too so idk. Literally couldn't paste it in.
The first 4 characters must be
$2a$
Welp, the api key i got starts with nothing like that so... Maybe add a button that opens the page where own api key can be obtained?
Where did you fetch it from? https://cf.polymc.org/api returns a key that starts with $2a$
.
I suppose it's a misunderstanding on my part about what api key is needed. But i still wish to know where can i obtain an api key linked to my account. If that's possible at least.
FWIW using your own API key has strict limitations, only the official one is really any good. If you don't want to use the official one then stick to Modrinth and FTB.