Commit Graph

880 Commits

Author SHA1 Message Date
Jozef Selesi
fbc810098f Do comment add in a single request, some code cleanup. 2008-11-15 17:39:14 +00:00
Jozef Selesi
5e10b44a95 Remove unnecessary pasted code. 2008-11-15 17:04:16 +00:00
Jozef Selesi
f9eaa8c220 Initial add comment implementation. 2008-11-15 16:52:23 +00:00
Bharat Mediratta
16828a4bc7 Delete the user from the session when uninstalling the user module 2008-11-15 09:08:59 +00:00
Bharat Mediratta
c152e5db5a Only remove the user from the session when logging out. 2008-11-15 09:05:21 +00:00
Bharat Mediratta
9d1a598ec0 Add support for modifying user data. It still needs work.
Make the continue= param a GET only parameter so that it's not part of
the form.
2008-11-15 08:15:00 +00:00
Bharat Mediratta
ae7839ffaa Revise the user login code.
* Remove user registration link and popup from the theme; this
  shouldn't be done in a popup. Use ajaxform to simplify the way
  that we load the login popup.

* Create form.html.php, this is a template for Forge based forms.

* Move user validation rules into User_Model and let forms
  populate the rules into their forms as useful.

* Undo r18688's changes regarding the REST code.  We should never
  accept a null resource, this breaks the REST abstraction.

* Change login and user controllers to use Forge which lets us delete
  login.html.php and user.html.php since those now are generated by
  the theme-owned form template
2008-11-15 06:23:09 +00:00
Tim Almdal
bd1ec2df1f The state of of the user registration functionality 2008-11-14 18:16:13 +00:00
Tim Almdal
d7745f2ad8 Add the name attr to the input fields and use the form.serialize() method to generate the post data 2008-11-14 17:23:10 +00:00
Tim Almdal
ed90edfa96 Remove class="gInline" and set the css as suggested by thumb in -devel 2008-11-14 16:56:17 +00:00
Bharat Mediratta
5a2fe6bb0b Internationalize all strings 2008-11-14 08:22:53 +00:00
Tim Almdal
652cc48b77 change the display name to a varchar 2008-11-14 07:42:20 +00:00
Tim Almdal
2386902926 Remove the logout action from the login controller 2008-11-14 07:20:00 +00:00
Bharat Mediratta
f0695f2030 Move logout to its own controller 2008-11-14 05:21:47 +00:00
Bharat Mediratta
71dc730986 Change quotes style 2008-11-14 05:09:07 +00:00
Bharat Mediratta
0fe8d44472 Create module helper and refactor all the code that creates, updates
and deletes modules into it.
2008-11-13 10:38:28 +00:00
Tim Almdal
6d7130bffc Progress is being made... you can now logout 2008-11-13 05:17:58 +00:00
Tim Almdal
f62719ba61 Login is now working, but you can't logout 2008-11-13 04:56:12 +00:00
Chad Kieffer
c63ddc3432 Major updates to form CSS. Now using unordered lists for layouts. Added .gInline for forms like login, search, tags. Updated comment, login, search, and tagging forms. All form styles live in screen.css now. Still a lot to do, but this is a good foundation. 2008-11-13 03:39:18 +00:00
Tim Almdal
74216a3c63 The login processing is starting to take shape. Login_Form is gone. The html for the login form is retrieve via an ajax call when the user clicks on login. Can't login with a valid id yet, but you certainly get error messages when things are wrong :-) 2008-11-12 21:42:40 +00:00
Tim Almdal
2a9f8b5bcd Added a legend to the fieldset 2008-11-12 18:13:59 +00:00
Tim Almdal
91b149adbf Generate the login view using fieldsets and an un order list 2008-11-12 17:48:04 +00:00
Tim Almdal
2019e9a931 Remove user_password class and move the functionality into the user helper class 2008-11-12 15:53:39 +00:00
Jozef Selesi
56dcb953b0 Code cleanup, add test for time formatting function. 2008-11-12 15:43:05 +00:00
Jozef Selesi
a1ca946a89 Make comment post time display more user-friendly by displaying 'today', 'yesterday', 'x days ago' etc. 2008-11-12 12:00:13 +00:00
Bharat Mediratta
ed8f1d4152 gBlockContent lives on the outer div, so remove it from the inner form. 2008-11-12 10:54:01 +00:00
Jozef Selesi
31bea40e2e Set svn:eol-style LF on a new file and add the standard preamble to some files. 2008-11-12 07:07:13 +00:00
Tim Almdal
1da2428183 More updates for user management. The controllers don't work yet. But the login link in the header wil open up a login box like the mockup 2008-11-12 03:40:49 +00:00
Bharat Mediratta
ba348181f7 Rename tag_cloud.html.php to tags_block.html.php for consistency 2008-11-11 23:12:16 +00:00
Bharat Mediratta
b0a3308740 Minor cleanup; localization, indentation, etc. 2008-11-11 22:46:25 +00:00
Jozef Selesi
752459c64c Display comments from the database. 2008-11-11 20:54:12 +00:00
Tim Almdal
dd9058ada4 Added some functionality to the user helper class (to check if the user is logged in) and changed the header to use the helper class 2008-11-11 20:16:58 +00:00
Tim Almdal
f5d092b484 Correct some missing properties and change the user_model to have a set function so the password is hashed as part of the model 2008-11-11 20:02:43 +00:00
Jozef Selesi
1651b3fe85 Move scaffolding code out of the comments controller to welcome.php. 2008-11-11 12:20:20 +00:00
Tim Almdal
bba5289035 Change Album and Photo controllers to set the user object as a global variable; change the header so it links to the user controllers; and add the user controllers which don't do anything. 2008-11-11 07:39:20 +00:00
Tim Almdal
9f261213a5 Reset PasswordHash.php to its original state and exclude it from the file_structure_test 2008-11-11 06:21:21 +00:00
Tim Almdal
62bb63a70d New user module with password support. This supports the same password mechanism as g1 and g2 to facilitate a migration. 2008-11-11 04:57:49 +00:00
Bharat Mediratta
db6917b58b Use select_list() to allow for a single assert_equal in our tests. 2008-11-10 22:08:02 +00:00
Bharat Mediratta
253ae3e003 Use alternate form of ORM::factory to reduce code. 2008-11-10 21:56:46 +00:00
Tim Almdal
7bcf7efc09 Remove the complexity of a interface driven user management module 2008-11-10 21:29:30 +00:00
Tim Almdal
0a8d5edbdc Early look at the User/Auth module refactoring. It will look for a driver based on the contents of the user/config/user.php file. And load that driver based on the User_Driver interface. There is a default User_Gallery_Driver class that will provide the actual interface implementation. Replacing this driver will allow a completely different user and authentication implementation to be used... hopefully will reduce issues with embedding and other user management systems. Removed from unit tests so they will still run. 2008-11-10 20:17:09 +00:00
Jozef Selesi
ddf0a51900 Comment creation controller, helper and test. Add comments from the scaffold. 2008-11-10 17:32:04 +00:00
Tim Almdal
359e28a50f Remove Auth module 2008-11-10 16:45:06 +00:00
Jozef Selesi
d8c2399b96 Prevent direct script access. 2008-11-10 11:40:48 +00:00
Tim Almdal
8858b957b0 The start of the login functionality. It shows the login popup but doesn't do anything else. Just got tire of my changes being clobbered :-) 2008-11-10 03:17:56 +00:00
Bharat Mediratta
b006b1922c uninstall and reinstall the comment module, too 2008-11-10 00:26:52 +00:00
Bharat Mediratta
1ba012db0e Chain away temporary variables 2008-11-09 23:45:47 +00:00
Jozef Selesi
aa437293e6 Fix line endings. 2008-11-09 23:34:03 +00:00
Jozef Selesi
434e56351e Install/uninstall support for the comment module. Missing from the previous commit. 2008-11-09 23:06:31 +00:00
Bharat Mediratta
a8713a7695 Allow in-place editing in the info block. 2008-11-08 19:11:12 +00:00