summaryrefslogtreecommitdiffstats
path: root/app (follow)
AgeCommit message (Collapse)AuthorFilesLines
2016-03-27Add collapsable panel for editing each user's settings to admin setting tabMalf Furious2-0/+67
Also, added relevant initialization code to common model
2016-03-27Add function User::getAddUsers_orderByAdminByName()Malf Furious1-0/+16
Added function to retrive all users in system presorted first by admin status (Admins first), then by username in alpha order
2016-03-27Fix maxlengths for fields on user objectsMalf Furious1-5/+5
Usernames, aliai, and email addresses are capped at 50 chars in the backend
2016-03-27Fix <label>s and <input>s that use unnecessary DOM IDsMalf Furious3-36/+36
I dont need to give these elements IDs, so I'm not going to
2016-03-27Alter admin setting form handlerMalf Furious1-1/+1
Set a default value for field 'settSSL'. If this value is locked in the system-level configuration, then the disabled radio buttons don't assume a value during POST submission to the page and the field appears to the $form object as being unset. I use the currently set value for this option as the default.
2016-03-27Add view for setting modal, all users admin tabMalf Furious1-1/+53
2016-03-27Move getUserGlyphicon function from common model into user classMalf Furious3-15/+12
2016-03-27Handle submissions to setting modal, admin tabMalf Furious1-1/+29
2016-03-27Alter representation of form boolean valuesMalf Furious3-4/+4
Changed how Form() objects model true and false for boolean fields. Was "true" and "false", is now "1" and "0", respectivly. This is to address how Mysql handles these values as they are pushed to the db.
2016-03-27Call common default action handler from dashboard controllerMalf Furious1-0/+1
2016-03-27Populate admin setting fields on page loadMalf Furious2-4/+25
Added logic to set initial state of fields on the setting modal's admin tab
2016-03-27Add view for Setting modal, admin tabMalf Furious1-1/+39
2016-03-27Fix function CommonModel::saveSettingUser()Malf Furious1-4/+7
Farious fixes for this form submission handler * missspelled variable names (*Password => *Passwd) * Added a notice message for password change success
2016-03-27Add function CommonModel::common_handleFormSubmissions()Malf Furious2-0/+12
This helper func to all implementing MVC controllers is used to check for submission of any web-form defined within a common MVC view file. If detected, the appropriate handler function is called.
2016-03-27Add function CommonModel::saveSettingUser()Malf Furious1-0/+57
This is a webform handler for the setting modal, user setting tab.
2016-03-27Add function User::confirmEmailKey()Malf Furious1-0/+12
Validates the users supposed email key. If correct, sets the users emailConf flag.
2016-03-27Add function User::setEmail()Malf Furious1-2/+11
This function handles internal vars while updating a user's email address.
2016-03-27Add function User::setPassword()Malf Furious1-2/+10
This user function will update the salt and key for a user object to change its password.
2016-03-27Add User settings tab for Setting modalMalf Furious1-5/+82
This commit adds the basic structure to the Setting modal in Common MVC. The meat of this commit is the content for the webform for the modal's form for user account settings. The next commit should implement form submission handling.
2016-03-27Only include the Setting modal if currently logged inMalf Furious1-1/+3
This prevents sending un-necessary HTML to the client on login/signup pages and allows code on the setting modal to assume that getCurrentUser() will always return an object.
2016-03-27Add settings modal to Common MVCMalf Furious2-0/+27
This modal dialog will be used to change app and object settings from any page in the app. The link to open it is added to the user button menu.
2016-03-27Update application navbarMalf Furious1-1/+14
The navbar now has a different view when logged in. I added the 'user button' which shows alert info and has a menu. Currently, the only menu item is 'Log out'.
2016-03-27Add function getCurrentUserGlyphicon() to Common modelMalf Furious1-0/+13
This helps render data for the common topp view (navbar). This function will return the glyphicon to use next to the current user's name.
2016-03-27Add function getDisplayName() to User classMalf Furious1-0/+11
If a user has an alias set, it should be displayed throughout the app instead of the username.
2016-03-27Hook Deauth and Dashboard MVCs from Root controllerMalf Furious1-4/+18
These two MVC trees are now accessable from the app. Also, the root controller is finally in a clean state :).
2016-03-27Add Dashboard controllerMalf Furious1-0/+27
2016-03-27Add Dashboard modelMalf Furious1-0/+15
2016-03-27Add Dashboard MVC default viewMalf Furious1-0/+13
2016-03-26Fix bug in Framework::getCurrentUser() functionMalf Furious1-1/+8
If, by some means, the GUID for a logged in user is not valid, that session should be terminated ("$this->setCurrentUser();") This might happen if the database gets flushed, or if an account gets removed while it is in use...
2016-03-05Add Deauth controllerMalf Furious1-0/+26
Model added in previous commit.
2016-03-05Add Deauth modelMalf Furious1-0/+17
Deauth is the MVC used to de-authenticate a session -- logout. This MVC will have no views.
2016-03-05Add sec_verify_ip to app root controllerMalf Furious1-0/+3
2016-03-05Add verify_ip security assertionMalf Furious1-0/+15
This assertion will be used app-wide. This asserts that the IP address a client uses to conenct to the app is constant throughout the the session's lifetime. This is to detect any session hijacking. If a session suddenly appears to be comming from a different IP address, the session will be killed.
2016-03-01Add garbage collection logic to Object::delObj()Malf Furious1-0/+8
Now, on deletion of objects, all refs to it are purged from the xref tables, obj_member and msg_read
2016-02-22Create a basic flow for the application Root controllerMalf Furious1-11/+22
This applies the rules for requiring or forbiding the use of SSL/HTTPS and reorganizes the rest of root's handle() function (that is, the check for displaying sysconf, auth, or a placeholder message).
2016-02-20Hook new Except MVC from the Root controllerMalf Furious1-17/+26
This patch encapsulates all app operations in a try block, and handles any exception by passing it into the new 'Except' MVC to be displayed
2016-02-20Finish initial exception reporting pageMalf Furious1-1/+6
2016-02-17Update Except model, deflt action to consume $message for display on pageMalf Furious1-1/+2
2016-02-17Add 'Except' MVC -- Used to show application exception messages to userMalf Furious3-0/+66
This MVC should be triggered by the root controller if normal routines throw an exception and should pass the exception message to the Except controller.
2016-02-07Add in-app administrative setting: settSSLMalf Furious1-0/+18
This is the in-app version of $_SCROTT['settSSL'] system-level setting. Setting::settSSL() overrides $_SCROTT['settSSL'] only if the latter is set to 'neither'. If both are set to 'neither', the app will run on either HTTP or HTTPS depending on how the page was requested.
2016-02-07Add fields to Issue objectMalf Furious1-1/+3
This adds attributes to an issue: due date (optional datetime) tags (space separated string of words to help categorize issues (again, optional))
2016-02-07Modify Auth controller descriptionMalf Furious1-1/+1
This MVC will not be used to handle deauth (logout) anymore. To improve app flow, a separate one will be created for this purpose
2016-02-06Update Auth controller to work with recent MVC redesign (HEAD^^)Malf Furious1-16/+4
2016-02-06Update Auth model to reflect changes in previous commitMalf Furious1-15/+18
2016-02-06Merge the two auth views togetherMalf Furious2-84/+90
For design reasons and to simplify flow of control throughout the app login/signup sequence, these two views are being merged together. This will autimately make the auth MVC less stateful, which I think is good. NOTE: This breaks the Auth MVC, the model and controller will need updated to support this new, single default view
2016-02-02Add admin setting 'allowPublicSignup'Malf Furious1-0/+13
This setting will be used to decide if the app should allow unauthenticated users to create their own user accounts or if an admin must create them.
2016-02-02Add helper function to Setting classMalf Furious1-0/+17
Added a static helper function to replacing (or inserting) an option value in the database, longhand.
2016-02-01Implement 'login' action on Auth MVCMalf Furious2-0/+37
Finished initial functionality for Auth MVC by implementing the login feature
2016-02-01Implement authentication helper functions in User classMalf Furious1-0/+24
Added function to initialize a User object by username wrather than GUID. Added function to validate a user-supplied plain-text password for a given user
2016-01-31Log in on signup successMalf Furious2-1/+10
Now, on a successful submission of the signup view form (Auth MVC), the app automatically logs in the newly-created user and redirects to Framework::ap() . "/". Placeholder code has been added to the root controller to simply var_dump() the current logged in user if one exists, otherwise the login view (Auth MVC) is shown