Commit Graph

20 Commits

Author SHA1 Message Date
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 fffdb77ff6
Cleanup status codes
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2017-07-08 14:21:57 +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
Pellaeon Lin 324c218c8d Compatibility fixes for Nextcloud 12
ref:
https://docs.nextcloud.com/server/12/developer_manual/app/changelog.html
http://www.doctrine-project.org/api/dbal/2.5/class-Doctrine.DBAL.Driver.Statement.html
2017-05-01 17:33:21 +08:00
Pellaeon Lin bd067ed85f Update# 6 chars of uppercase and digits should be enough for
verification
2016-06-26 15:27:47 +08:00
Pellaeon Lin 716db75f9a Delete# unused, deprecated import 2016-02-13 14:18:04 +08:00
j2L4e 29379c373d Update pendingregist.php
no more tokens containing slashes to prevent problems URL generation error ("token" for route "registration.register.verifyToken" must match "[^/]++")
2015-07-20 14:08:24 +02:00
Pellaeon Lin 51e92b9a17 Update# directly delete pending registration after successfully
registered
2015-06-24 00:50:14 +08:00
Pellaeon Lin 4a5827ea3d Update# use \OCP\Security\ISecureRandom to generate random string 2015-05-06 22:46:26 +08:00
Pellaeon Lin 4d01204636 Fix# setRegistered SQL 2015-03-05 19:12:07 +08:00
Pellaeon Lin 04c7bb5b3d Set registered after account creation 2015-01-31 00:34:36 +08:00
Pellaeon Lin 3442085dc0 Fix recording request time 2014-10-22 13:05:23 +08:00
Pellaeon Lin 2a8ff61496 Rename function: PendingRegist::findByToken -> findEmailByToken 2014-10-03 16:05:57 +08:00
Pellaeon Lin e16e5df481 Implemented controller verifyToken 2014-08-31 19:20:26 +02:00
Pellaeon Lin bf7df3827b Fix registerController 2014-08-31 12:14:24 +00:00
Pellaeon Lin 6b75d5a394 Should call PendingRegist for DB operations 2014-08-31 10:13:36 +00:00
Pellaeon Lin b1b06947bf Implement DB query 2014-08-29 16:59:12 +00:00
Pellaeon Lin 4b9a97cb08 Add Db service prototype 2014-08-29 15:35:10 +00:00