Commit Graph

6 Commits

Author SHA1 Message Date
Leon Klingele 8d05f77e9c db: increase email verification token length and also allow lowercase characters
Implements https://github.com/pellaeon/registration/issues/179.

Following the birthday paradoxon there were token collisions with a probability
of 50% with  ~55.000 open registrations: https://play.golang.org/p/zVLvfc2VfSI
2019-06-22 16:35:59 +08:00
Pellaeon Lin 01fa314fc5 Avoid ISecureRandom::CHAR_HUMAN_READABLE to retain compatibility with
ownCloud and Nextcloud < 12.0.0
2017-08-16 01:37:48 +08:00
Julius Härtl ffcc23957e
Check if username is already used for a pending registration
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2017-07-08 14:27:51 +02:00
Julius Härtl 74b5428193
Use client secret as identifier
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2017-06-30 15:55:21 +02:00
Julius Härtl 8f192c49fe
Add registration API
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2017-06-27 11:37:47 +02:00
Julius Härtl 55c04b21ff
Some refactoring to make code simpler and more readable
- Refactor database classes to use entity/mapper pattern
- Use automatic class loading
- Move logic to RegistrationService class so it is reusable for the api

Signed-off-by: Julius Härtl <jus@bitgrid.net>
2017-06-11 13:06:22 +02:00