1. 06 Sep, 2012 1 commit
  2. 03 Sep, 2012 1 commit
    • Son Nguyen's avatar
      Rename BrowserID to Persona (bug #1030033) · da37bcd8
      Son Nguyen authored
      
      
      - Rename BrowserID to Persona
      - Replace the login via 'BrowserID' button with standard graphical
      Persona button.
      - Add Persona logo
      - Update css style of all availlable themes: raw, aqua, default, primary
      school, fresh, sunset, and ultima.
      - Change Persona button background for aqua theme
      
      Change-Id: Icf7932dbf3e1dd32660280ab8e269d4b837b3536
      Signed-off-by: default avatarSon Nguyen <son.nguyen@catalyst.net.nz>
      da37bcd8
  3. 29 Aug, 2012 1 commit
  4. 17 Aug, 2012 1 commit
  5. 13 Aug, 2012 1 commit
  6. 08 Aug, 2012 1 commit
  7. 06 Aug, 2012 1 commit
  8. 03 Aug, 2012 1 commit
  9. 01 Aug, 2012 1 commit
  10. 31 Jul, 2012 1 commit
  11. 30 Jul, 2012 1 commit
  12. 28 Jul, 2012 1 commit
  13. 25 Jul, 2012 1 commit
  14. 17 Jul, 2012 1 commit
  15. 12 Jul, 2012 1 commit
  16. 04 Jul, 2012 1 commit
  17. 03 Jul, 2012 4 commits
  18. 02 Jul, 2012 1 commit
  19. 26 Jun, 2012 1 commit
  20. 18 Jun, 2012 1 commit
  21. 11 Jun, 2012 1 commit
  22. 01 Jun, 2012 1 commit
  23. 31 May, 2012 2 commits
    • Richard Mansfield's avatar
      Add support in User for theme preference · c1fda6fe
      Richard Mansfield authored
      
      
      Part of bug #793308
      
      If a user has the 'theme' property set in their account preferences,
      this is used instead of the site or institution's theme.
      
      The LiveUser::reset_institutions() function, which recalculates the
      institution theme, is now called in place of LiveUser::update_theme()
      whenever a user's institutions have changed.  reset_institutions() now
      calls update_theme() if the user is a LiveUser.
      
      Change-Id: I75b36da85a5aa249c3098078b8588b8a20ac9b48
      Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
      c1fda6fe
    • Richard Mansfield's avatar
      Gather themename, logo & stylesheets together in User object · a9e7ef47
      Richard Mansfield authored
      
      
      The Theme constructor expects a triple (basename, logo, stylesheet),
      which is passed by the User::get_themedata function.  But the three
      properties are stored separately in the User object.  If they are
      grouped together, then it will be easier to switch themes in and out
      at a later date.
      
      The three properties are combined under the 'institutiontheme' name,
      to make it clear that they are defined by the user's institutions, and
      to distinguish them from the user's own theme preference.
      
      This requires a slight change to code for setting a view theme on view
      creation, where only the basename property is allowed, because custom
      themes with logos & stylesheets are not yet available as view themes.
      
      Change-Id: Ie400a0f1c4a2172382dfaba14139f1b0b27f2120
      Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
      a9e7ef47
  24. 30 May, 2012 1 commit
  25. 23 May, 2012 3 commits
  26. 18 May, 2012 2 commits
    • Richard Mansfield's avatar
      Don't write logged out user preferences to the db (bug #1001064) · cec0820f
      Richard Mansfield authored
      
      
      $USER->set_account_preferences() always saves preferences to the
      usr_account_preference table as well as to $USER.  Adding a test for
      the user's id means that this function can be safely called on a
      logged-out user.
      
      Change-Id: Ieab78c5fbf30647dbb5dce10e960afb260c8dd1f
      Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
      cec0820f
    • Richard Mansfield's avatar
      Add local hooks for registration and user initialisation (bug #1001064) · 5d737aa5
      Richard Mansfield authored
      
      
      Three new hooks are added:
      
      local_init_user() - called after $USER is initialised.  This is useful
      for changing the user's theme before $THEME is initialised.
      
      local_register_submit() - called when the registration form is
      successfully submitted, but before the submitted values are saved to
      usr_registration.  This is useful for remembering the properties or
      preferences of the logged-out user when the form was submitted.
      
      local_post_register() - called after a user has successfully been
      created and logged in during registration.  This is useful when
      properties of the user (which may have been saved to usr_registration
      by local_register_submit()) need to be transferred to the newly
      registered user.
      
      Change-Id: Ifcb19737bdcecb550185624f2fd78e541690a337
      Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
      5d737aa5
  27. 15 May, 2012 2 commits
    • Richard Mansfield's avatar
      Ensure users are automatically created by browserid authentication · 69eda7d7
      Richard Mansfield authored
      
      
      Previously, if the last browserid auth instance fetched from the
      database had autocreate off, then other browserid authinstances with
      autocreate on never got a chance to create the user.
      
      This change lets all the browserid authinstances with autocreate on
      have a go at creating users, and tries "No Institution" first.
      
      Change-Id: I9cc0d666515dbfb527893d0f0e1e1abd520a3037
      Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
      69eda7d7
    • Hugh Davenport's avatar
      Add ability to register with a BrowserID (bug #986004) · a5a97f21
      Hugh Davenport authored
      
      
      When a user clicks on "BrowserID Login", one of three things will happen
      1- If they have an account, they will login
      2- If they don't but there is one authinstance with browserid is present
          AND it has weautocreateusers enabled, then they will get an account
          in that institution, and login
      3- If none of the above is true, they will get redirected to a register
          page, which follows same self registration pattern as the internal
          authentication with the "confirm email" step removed.
      
      Change-Id: Idde3166e0664bf2acdc1da32271125e91d43af9c
      Signed-off-by: default avatarHugh Davenport <hugh@catalyst.net.nz>
      a5a97f21
  28. 14 May, 2012 1 commit
  29. 01 May, 2012 2 commits
  30. 30 Apr, 2012 2 commits