Commit Graph

103 Commits

Author SHA1 Message Date
Evan Prodromou
231c61a7eb store invite code in session so openidfinish can find it 2009-04-17 12:52:26 -07:00
Robin Millette
362cac0a96 Add a few events (hooks): RegistrationTry, RegistrationForData, ProfileFormData and ProfileSaveForm. 2009-04-16 17:34:19 +00:00
Evan Prodromou
3b5fd8fb6b Revert "Code to handle PEAR_Errors raised by DB_DataObject that are bubbling"
This reverts commit 9f035e2847.

It's a lot of complicated stuff, and the global handler probably does
fine.
2009-02-12 16:05:37 -05:00
Evan Prodromou
b09eb06dae Revert "Just discovered the PEAR_Error handling function in index.php. Duh."
This reverts commit 616bdd43a9.

Kind of a long hard way to deal with a simple situation, so I'd prefer
to just use the global handler.
2009-02-12 16:04:43 -05:00
Zach Copley
616bdd43a9 Just discovered the PEAR_Error handling function in index.php. Duh.
Renamed the Action functions to throw an exception like it. I still
think it probably makes sense to have the callback defined in both
places for finer control.
2009-02-11 22:08:20 -08:00
Zach Copley
9f035e2847 Code to handle PEAR_Errors raised by DB_DataObject that are bubbling
up, but are actually expected and can safely be ignored.
2009-02-11 21:41:56 -08:00
Robin Millette
c2905085c1 trac #1155 ++ replace strlen with mb_strlen for all utf8 strings. 2009-02-07 19:33:18 +00:00
Zach Copley
733b3543d0 Put license text inside label to align it with "Remember me" label above it. Improve sentence. 2009-01-29 13:18:10 -08:00
Sarven Capadisli
e20c3e2b7c Entered CC3.0 anchor text 2009-01-27 02:37:41 +00:00
Evan Prodromou
8d95151f7a fix license link in registration page 2009-01-26 16:57:39 +01:00
Zach Copley
1a941d03fd Added some CSS classes for styling doc pages differently 2009-01-22 04:26:15 +00:00
sarven
0b5f0f4faa Renamed form_datas to form_data 2009-01-19 03:09:13 +00:00
sarven
9d384aadb1 @id for site_nav_global_primary items in order to target for styling 2009-01-18 22:08:51 +00:00
sarven
5da9511c31 Markup and styles for the Register page 2009-01-18 19:42:08 +00:00
Evan Prodromou
4163f45004 Update register action to match phpcs and new framework 2009-01-18 13:37:58 +00:00
Evan Prodromou
4b0cf99e56 Convert use of common_server_error and common_user_error to methods on Action 2009-01-15 23:03:38 +00:00
Evan Prodromou
eaa81d25fa Convert all actions to use new UI functions
I did a massive search-and-replace to get all the action subclasses to
use the new output function (common_element() -> $this->element(), etc.)

There's still a lot to do, but it's a first step
2009-01-15 22:57:15 +00:00
Evan Prodromou
a53860f6cf whitespace changes in actions/register.php after global search-and-replace
darcs-hash:20081223195722-84dde-7416c826728867e431511266ce18699d129a60ed.gz
2008-12-23 14:57:22 -05:00
Evan Prodromou
b264c03d32 move opening brace of class declaration to next line
Another gigantor PEAR coding standards patch. Here, I've moved the
opening curly bracket on a class statement to the following line.

darcs-hash:20081223194923-84dde-77a93de314caadbcb5b70bf346a4648be77a864e.gz
2008-12-23 14:49:23 -05:00
Evan Prodromou
04ef1ba8ee change function headers to K&R style
Another huge change, for PEAR code standards compliance. Function
headers have to be in K&R style (opening brace on its own line),
instead of having the opening brace on the same line as the function
and parameters. So, a little perl magic found all the function
definitions and move the opening brace to the next line (properly
indented... usually).

darcs-hash:20081223193323-84dde-a28e36ecc66672c783c2842d12fc11043c13ab28.gz
2008-12-23 14:33:23 -05:00
Evan Prodromou
eb2f9c98ac replace NULL with null
Another global search-and-replace update. Here, I've replaced the PHP
keyword 'NULL' with its lowercase version. This is another PEAR code
standards change.

darcs-hash:20081223192129-84dde-4a0182e0ec16a01ad88745ad3e08f7cb501aee0b.gz
2008-12-23 14:21:29 -05:00
Evan Prodromou
edbc0c665c replace all tabs with four spaces
The PEAR coding standards decree: no tabs, but indent by four spaces.
I've done a global search-and-replace on all tabs, replacing them by
four spaces. This is a huge change, but it will go a long way to
getting us towards phpcs-compliance. And that means better code
readability, and that means more participation.

darcs-hash:20081223191907-84dde-21e8efe210e6d5d54e935a22d0cee5c7bbfc007d.gz
2008-12-23 14:19:07 -05:00
Evan Prodromou
f84dbce164 better instructions
darcs-hash:20081202194816-5ed1f-93a18c7b978950a770b833e7dea9e1fd5bb71de8.gz
2008-12-02 14:48:16 -05:00
Evan Prodromou
6a96639b24 better registration instructions
darcs-hash:20081202194633-5ed1f-ebf0c5f54f4080dc70489d58777ad66d4f1b9bc8.gz
2008-12-02 14:46:33 -05:00
Evan Prodromou
de9ea671fc whitespace in actions/register
darcs-hash:20081202185444-5ed1f-a84761dfb4ffb40d6e90c79d92dcd4b029745300.gz
2008-12-02 13:54:44 -05:00
Evan Prodromou
c3b884e707 check for blank email when rejecting a dupe
darcs-hash:20081202185343-5ed1f-99c314aac9e59ddbddd59ee403d4111c3639aa98.gz
2008-12-02 13:53:43 -05:00
Evan Prodromou
0f6572fdba full sentence for invite-only error
darcs-hash:20081021183035-5ed1f-c40445017094a3f6c0e89fa8744ede28fd5ab20a.gz
2008-10-21 14:30:35 -04:00
Evan Prodromou
3a246c1726 add 'invite-only' mode for registration
darcs-hash:20081021182822-5ed1f-9a8ee3960f82d115d43e35baac646f69bc702533.gz
2008-10-21 14:28:22 -04:00
CiaranG
ce2eaf84aa Fix unquoted array key, causes b0rkage on some php setups (via @bopuc)
darcs-hash:20080911163558-f6e2c-ae857f68936ed4328d4e38323f7e77ce25a0236a.gz
2008-09-11 12:35:58 -04:00
Evan Prodromou
75f285ddf6 merge in changes for CSRF, too
darcs-hash:20080830162223-84dde-573e490dc4fde68512ea4ec28599019d2740cfcf.gz
2008-08-30 12:22:23 -04:00
Evan Prodromou
e248066b74 updates for invitations
Add the code to registration to handle invitation codes.

Some edge cases on invitations: is the user already subbed to this
person? Tell them. Is the person already on the system? Sub the user
to them, then, and tell the user.

Add some code to User to auto-sub invitees whenever the email address
changes. Call it from a new registration with an invite code, and also
from confirmaddress.

Some whitespace cleanup in the files touched.

darcs-hash:20080827001927-84dde-b50e5d921ca3f2fb894821730ff93cac09d2ba66.gz
2008-08-26 20:19:27 -04:00
Garret Buell
4d1528734d RequirePassword
Require a password with at least 6 characters when registering.

darcs-hash:20080830195036-e3c0d-6b4cac221674240e1a8383675b69863f54dd2525.gz
2008-08-30 15:50:36 -04:00
Evan Prodromou
2dc50d7e37 CSRF protection in user registration
darcs-hash:20080829054017-84dde-c9268e5c815934dcbca2451dd6c9016f2ac4a03a.gz
2008-08-29 01:40:17 -04:00
Evan Prodromou
7554f2561c move user registration to a single static method
darcs-hash:20080814002038-84dde-8505d4e083056b770db128129a95be639d8e7f0a.gz
2008-08-13 20:20:38 -04:00
Evan Prodromou
4c8dfadf2d make init of lang environment happen earlier, or when user language may have changed
darcs-hash:20080806034515-84dde-e32cbfec2890f50b610d0441659180038b060473.gz
2008-08-05 23:45:15 -04:00
Evan Prodromou
e97c06e8e2 let admins prevent registration
darcs-hash:20080724235508-84dde-8bac4d9dd772adb9f27d083b3d0b6ed5b7526dbf.gz
2008-07-24 19:55:08 -04:00
zach
7e6870db91 base class is_readonly() now returns false by default
darcs-hash:20080722212056-ca946-e4bd9eef8e3d8991414932e9fc7b8c9a31f818c0.gz
2008-07-22 17:20:56 -04:00
zach
038f762bce Added is_readonly() method to all Actions
darcs-hash:20080722171501-ca946-160bad6c4f80be2b3b105ea9b913f1c0f9edb0ef.gz
2008-07-22 13:15:01 -04:00
Evan Prodromou
ab1f2ff9d0 every user is subscribed to themselves
darcs-hash:20080722144154-84dde-80beabad9a681f2e12edb34ceb4ac249f4ce6705.gz
2008-07-22 10:41:54 -04:00
Evan Prodromou
38b215805e one more linefeed
darcs-hash:20080715215556-84dde-e41b099910bd11698b0148c6bd4f4d98cc883fb3.gz
2008-07-15 17:55:56 -04:00
Evan Prodromou
16c7c6f93c maybe an extra \n will help my formatting
darcs-hash:20080715215407-84dde-6e75d2a138152a2f5dd71fc2813096b4d66ba831.gz
2008-07-15 17:54:07 -04:00
Evan Prodromou
b3cde85bac more formatting for registration success
darcs-hash:20080715214934-84dde-f0a20191b3e833d0660affc944a527e3d06d2f69.gz
2008-07-15 17:49:34 -04:00
Evan Prodromou
098337e896 better formatting in registration results
darcs-hash:20080715214612-84dde-779ae3816488bdc1e0754fd807fde39c293db61e.gz
2008-07-15 17:46:12 -04:00
Evan Prodromou
ba09eb7700 fix checkbox for license
darcs-hash:20080715214249-84dde-ed5f9b38a93e9fcfd5c6772fb1c784696d3a435a.gz
2008-07-15 17:42:49 -04:00
Evan Prodromou
d361bad9e1 more info at registration time, better message when you're finished
darcs-hash:20080715213202-84dde-7a6a8fadfccc76bda12f3de01d17a1d95daf18b8.gz
2008-07-15 17:32:02 -04:00
Mike Cochrane
b104da04fb Colapse a lot of strings to make like easier for translators and more consisitant for users
darcs-hash:20080713053748-533db-1cdb0cf3a9e4102eb139b74a7a9d4f97dadb20b8.gz
2008-07-13 01:37:48 -04:00
Mike Cochrane
834c21b2aa Merge some gettext strings to one line so translation tools are happier
darcs-hash:20080713044608-533db-ee16aecee9b6d82b22ce6a25f6a9573c23eee9f8.gz
2008-07-13 00:46:08 -04:00
Mike Cochrane
800c2e9a09 Fixed non openid registration
darcs-hash:20080713024754-533db-af3dbd6186df4ce27caa7c25d0752d3e7afa184a.gz
2008-07-12 22:47:54 -04:00
Mike Cochrane
8ffe49b595 Error I made merging a diff
darcs-hash:20080712123942-533db-21fa41076dd7b57935f49462423f247ccbb01e8f.gz
2008-07-12 08:39:42 -04:00
Mike Cochrane
7e38142d4a Resolve conflicts and convert _t( to _( where it was introduced again.
darcs-hash:20080710045126-533db-ffd9bcfe1295b3a376579ed7cd2278d5597b1884.gz
2008-07-10 00:51:26 -04:00