Commit Graph

66 Commits (f64ee98f6a220b8e9c8e2486c2ad39f1aae35c05)

Author SHA1 Message Date
eric 22870a4350 harden object retrieval against unexpected input 2017-12-08 20:58:37 -05:00
eric 170a6b7b16 Merge remote-tracking branch 'Gluejar/master' 2017-10-06 15:36:29 -04:00
eric 4aa968a523 change behavior of reset password
- send email even if password is unusable
- tell user if there's no user with that email
2017-09-22 16:54:16 -04:00
eric d968a800ae don't require old password if social auth 2017-09-22 16:02:43 -04:00
eric c3fd4347a5 use single quotes 2017-09-22 14:53:32 -04:00
eric 19266d35ee remove social_auth_reset_password 2017-09-22 14:50:35 -04:00
eric 84da8bde94 Merge remote-tracking branch 'Gluejar/master'
# Conflicts:
#	frontend/views/__init__.py
#	questionnaire/admin.py
#	questionnaire/urls.py
#	questionnaire/utils.py
#	questionnaire/views.py
2017-08-21 12:02:48 -04:00
eric db97a98ae8 https 2017-07-27 10:33:13 -04:00
eric 559c2ce3b4 add 3rd party licenses 2017-01-19 11:18:26 -05:00
eric b252d0b7df fix block edit
issues:
1. IPAddressField is deprecated. We can change this without consequence
because the underlying field type is not changed.
2. New admin was not wired up.
3. There was a admin bug when one end of the block is zero.
2016-11-09 15:24:11 -05:00
eric 0600078c27 empty the repair migration 2016-07-29 18:49:08 -04:00
eric 33a1482cc7 refactor libraryauth
try to keep all the user reg stuff in libraryauth, in prep for
splitting it off
2016-07-28 15:28:05 -04:00
eric 4ff63359b3 migration to repair db
The migrations needed to migrate our db to django 1.8 are as follows:
django-admin.py migrate default 0001_initial --fake
django-admin.py migrate --fake-initial auth
django-admin.py migrate default 0002_add_related_name --fake
django-admin.py migrate core --fake
django-admin.py migrate libraryauth
django-admin.py migrate --fake-initial
2016-07-28 10:10:05 -04:00
eric ac541ec1a0 patterns in urlpatterns are deprecated
https://docs.djangoproject.com/en/1.9/releases/1.8/#s-django-conf-urls-p
atterns

Also, moved edit_user to libraryauth module with the rest of our user
reg and auth.
2016-07-27 13:02:47 -04:00
eric 9e3fef8e9e fix models so django migrate can build an empty db 2016-07-22 18:49:19 -04:00
eric 5b4badb7e6 update registration 2016-07-22 18:42:19 -04:00
eric 9da195dcc8 remove south, fix migration problems 2016-07-21 16:09:42 -04:00
eric 05af9db11c model forms need at least exclude 2016-07-21 15:52:07 -04:00
eric d8eb4297d9 migrations 2016-07-21 15:38:09 -04:00
eric c5ee01df57 its the future! 2016-05-11 10:41:50 -04:00
eric 3f833c569d patch for django-registration 2016-05-10 17:15:01 -04:00
eric bca17837a0 add fixtures in testcases 2016-04-09 13:21:12 -04:00
eric 7a952f09cf patch form exclude syntax 2016-04-07 20:39:23 -04:00
eric 562be5f12d patch django-notification 2016-04-07 20:37:54 -04:00
eric d951cca966 Merge branch 'master' into django15
# Conflicts:
#	api/models.py
#	api/onix.py
#	api/opds.py
#	api/tests.py
#	api/urls.py
#	api/views.py
#	bisac/__init__.py
#	core/bookloader.py
#	core/facets.py
#
core/migrations/0072_auto__add_relator__add_relation__add_field_subject_
authority.py
#	core/models.py
#	core/tests.py
#	fabfile.py
#	frontend/forms.py
#	frontend/templates/new_edition.html
#	frontend/templates/notification/rights_holder_claim/notice.html
#	frontend/templates/privacy.html
#	frontend/views.py
#	requirements_versioned.pip
#	settings/common.py
#	test/raw/master/metadata.yaml
2016-04-07 14:26:45 -04:00
eric 29108128a5 global change url syntax 2015-04-27 23:24:02 -04:00
eric a8cab6c0ae get google oauth2 working 2015-04-07 22:55:30 -04:00
eric 7bcc7cd409 fix bug for email auth 2014-03-18 17:29:45 -04:00
eric 13bd024f1f b2u for libraries
1. library license is autochecked when user is the library
2. the library owner is automatically made a member of the library
2014-03-14 15:12:23 -04:00
eric 16159be44e fix the bug when user tries to delete a verification that doesn't exist 2014-02-11 12:40:46 -05:00
eric af8fe05c54 fix same email bug
This bug [#63071834] was caused by a bug in Registration 1.0, which
fires the account_activated signal twice. There's already a pull
request fixing this bug.

In reviewing this handler, I realized that all the other reg code is in
library_auth, so I moved the same_email code there. I also decided that
the utility of attaching to the old email address was insufficient to
over come the risk of people stealing accounts by messing with social
auth.
2013-12-30 11:49:04 -05:00
Raymond Yee 0d28fbab7e Merge branch 'master' into ban_disposable_emails 2013-12-18 08:54:11 -08:00
Raymond Yee dd30ed81c2 Merge branch 'master' into test_credit 2013-12-17 15:53:54 -08:00
eric abfbc4101c Merge branch 'master' into ban_disposable_emails
Conflicts:
	libraryauth/urls.py
2013-12-16 16:44:13 -05:00
eric b9c54ead8b deny registration to robots that try to search for the registration page. 2013-12-16 16:27:19 -05:00
eric 9a47f953cf wire in custom registration and reorganize urls, add tests 2013-12-16 15:16:34 -05:00
eric 39bb68016a custom registration form and view 2013-12-16 15:15:47 -05:00
eric 5874455d0d add disposable email checker 2013-12-16 15:14:28 -05:00
eric 04ca7ee221 forgot to set the library user as a user of the library 2013-12-15 02:08:33 -05:00
eric 5a43c46675 consolidated and renamed libraryauth template tags 2013-12-15 01:43:17 -05:00
eric 440153f5dc Merge branch 'master' into test_credit 2013-12-15 01:27:59 -05:00
eric 4d1bd51406 add a simple tag to convert a library id into a name 2013-12-15 00:24:04 -05:00
eric 8c974ca343 moved library list generation into a template tag
previously, if you created or updated a library, the list
(/libraryauth/list/ )would not get updated
2013-12-13 14:25:18 -05:00
eric 79ea81a5e1 fix problem created by refactor 2013-12-02 18:19:11 -05:00
eric b1e1b9ff5d clean up migration 2013-12-02 10:21:29 -05:00
eric 8b53581169 clean up instructions 2013-12-02 10:12:22 -05:00
eric 45d96f21bc Add explanation of verification options 2013-12-02 00:46:25 -05:00
eric ddc681321d refactor backends into classes 2013-12-01 23:58:58 -05:00
eric 92aee28538 users can't join unapproved libraries 2013-12-01 19:20:42 -05:00
eric 54deeea910 tweak the admin 2013-11-30 15:41:05 -05:00