Tokens can only take up to 22 characters in the database but forms allow for 255
With this release, we started working on the possibility to set join and login tokens manually instead of depending on an auto-generated token. While making the first efforts for this in issue #13 (closed), it had been decided that tokens up to 255 characters would be allowed. However, the current database schema has the login and join tokens defined as VARCHAR(22)
, which does only allow for a maximum of 22 tokens. Also, the generated JOOQ code reflects this by having a @Size
annotation in the generated pojo's.
This issue has to be solved by changing the validation of the forms to only allow for tokens up to 22.
Please note that #29 (closed) also adds some validation that allows for tokens up to 255 characters. At the time of writing this issue is still under review, so if we decide to fix this by only allowing tokens up to 22 characters, the MR related to this issue should be updated.