Tags: fallspectrum/Syner
Tags
User related code updated, autoload config updated, global js updated - user_session library is autoloaded now - Layout view now checks user privilege for displaying alternate header links (login/logout, register, home, etc). - Created a redirect function in global.js for redirecting user to another page - Created a general message view, used for quick messages. - User is redirected to home page after logging in
User registration and Simple_json library updated User registration code changes: -User registration page now has ajax code to check for error responses for a registration request. Lets user know if there input was invalid or username/account name was already taken by displaying text next to its input field. Pending_users model modifications: -model view was created -able to check if a username exists based on username and/or email. This only checks the pendin_users table. -Able function inser_entry to add a user to the pending_users table. Simple_json library modifications: -replaced add_simple_response function with a more fitting name, add_error_response