Pellaeon Lin
706eda7b30
Fix #91
2017-09-17 15:31:31 +08: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
c17398dede
Fix copyright, comments, phpdoc and OCS status codes
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2017-06-30 09:42:29 +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
54e6f55627
Use new \OCP\Defaults instead of \OC_Defaults, fixes #62
2017-05-04 00:01:07 +08:00
Pellaeon Lin
8786d92276
Refactor settings saving
2017-02-18 11:58:56 +08:00
Pellaeon Lin
37743dfd5d
Fix# compatibility with 9.0
2016-07-09 16:08:54 +08:00
Pellaeon Lin
68d05bbb72
Update# use public API to log user in
2016-07-08 17:22:59 +08:00
Pellaeon Lin
6479e16339
Update# automatically logs user in after account creation
2016-07-02 12:54:20 +08:00
Pellaeon Lin
20bb45121e
Fix# "must be an instance of OCA\Registration\Controller\string, string
...
given", #38
PHP 5.6 and below does not support typehinting primitive types
ref:
http://stackoverflow.com/questions/5724677/php-type-hinting-to-primitive-values
2016-06-26 15:20:39 +08:00
Pellaeon Lin
95084a18f1
Fix# avoid deprecated \OCP\DB
2016-02-13 14:18:56 +08:00
Thomas Imbreckx
8028be7ff2
Fix some strings and typos
2016-01-23 13:55:05 +01:00
Pellaeon Lin
d38dd3874d
Update# send emails to admins to notify about new user
2015-11-19 23:52:52 +08:00
Pellaeon Lin
fa191f1101
Update# clear TODO that are completed
2015-11-19 23:51:14 +08:00
Pellaeon Lin
649480c403
Update# use dot to namespace templates
2015-11-19 23:51:14 +08:00
Pellaeon Lin
4ee1665db7
Update# support instance name, shown in emails
2015-11-18 00:34:39 +08:00
Pellaeon Lin
5131b2b2ac
Update# use IMailer to validate email address
2015-11-16 10:21:54 +08:00
Pellaeon Lin
6865cfd9d0
Update# use \OCP\Mail to send multipart email, containing both html and
...
plaintext
2015-11-14 12:34:42 +08:00
Pellaeon Lin
9735c39565
Update# @PublicPage implies @NoAdminRequired
2015-08-31 17:40:37 +08:00
Pellaeon Lin
b3c2695237
Update# CSRF for account creation form
2015-08-31 17:39:25 +08:00
Pellaeon Lin
59d1ae6038
Update# more helpful message if the email has already been taken
2015-08-31 17:31:41 +08:00
Pellaeon Lin
14fcdc6643
Update# CSRF check for email field
2015-08-31 16:44:01 +08:00
Pellaeon Lin
8f16f596bd
Fix# coding style
2015-08-30 18:20:06 +08:00
Pellaeon Lin
c8fe81f991
Fix# list allowed domains in message
2015-08-30 18:19:07 +08:00
Pellaeon Lin
3741e150f1
Fix# correct error message when pending reg request exists
2015-08-30 01:27:47 +08:00
Pellaeon Lin
b64640083e
Update# remove resendEmail route,
...
since it may be used to bypass domain check
2015-08-30 01:03:23 +08:00
Pellaeon Lin
7d6d6c068e
Update# feature to resend verification email
2015-08-29 20:56:39 +08:00
Pellaeon Lin
69ff86ee53
Update# clean up code from johannesst's PR
2015-08-29 19:17:10 +08:00
Pellaeon Lin
26d028bcdf
Update# separate sending verification email to a private function
2015-08-29 18:14:22 +08:00
Johannes Starosta
5b9f0f0286
Fix merge conflict
2015-08-01 10:19:58 +02:00
Pellaeon Lin
431b598aa7
Fix# Exception namespace,
...
should error when unable to set user email
2015-07-20 07:25:36 +00:00
Pellaeon Lin
96d584e751
Fix# internal server error when username already exists
2015-07-20 07:25:36 +00:00
Johannes Starosta
e7ac1e806f
Removed unneeded imports and outcommented lines
2015-07-19 06:11:07 +02:00
Johannes Starosta
6ecfe51d8b
Fix merge conflict
2015-07-19 06:06:26 +02:00
Pellaeon Lin
bbcf4c9033
Fix# imports
2015-07-13 20:11:24 +08:00
Pellaeon Lin
957f674781
Fix# Can't use method return value in write context
...
This would probably occur for PHP<5.5
ref: https://stackoverflow.com/a/4328049/446391
2015-07-13 17:24:18 +08:00
Johannes Starosta
a0b26e0a46
Removed commented out bug in validateMail
2015-07-13 07:36:36 +02:00
Johannes Starosta
9295c366ea
Now registrations works again when domain is not set
2015-07-13 06:40:28 +02:00
Johannes Starosta
db941b30aa
Fixed invalid mail error msg
2015-07-13 05:58:44 +02:00
Johannes Starosta
b514714215
Added error message when trying to register from wrong domains
2015-07-13 05:32:44 +02:00
Johannes Starosta
ce319a54aa
Fixed typo in domain checking code
2015-07-13 04:08:52 +02:00
Johannes Starosta
7afb88d496
Fixed bug in check for changed allowed domains
2015-07-13 03:58:25 +02:00
Johannes Starosta
de6137e7ff
Code for handling registrations for allowed and not allowed domains
2015-07-13 03:28:47 +02:00
Johannes Starosta
18b4911038
Settings for allowed domain are now processed and saved correct
2015-07-13 02:23:40 +02:00
Johannes Starosta
cacb9840fa
Further work on settings panel
2015-07-13 00:16:46 +02:00
Pellaeon Lin
bfaece7076
Fix# show selected in admin section
2015-07-12 11:21:19 +08:00
Pellaeon Lin
b97b8d9e6e
Update# actually add new user to configured group
2015-06-24 01:21:18 +08:00
Pellaeon Lin
211db8e923
Fix# declare private variable of injected usermanager dependency
2015-06-24 01:02:22 +08:00