Giter Club home page Giter Club logo

django-miniuser's People

Contributors

mischback avatar

Watchers

 avatar  avatar

django-miniuser's Issues

Registration

  • create Class Based View for creating new accounts
    • how much of Django's built-in views can be re-used?
    • Django's built-in views were introduced as CBV in Django 1.11. Up to 1.10 they are FBV. Should we seperate them logically? Or drop 1.10 support?
  • create a corresponding form
  • automatically activate if MINIUSER_DEFAULT_ACTIVE = True
  • provide some mean of manual activation
    • no notification of staff members
    • with (email) notification of staff members
    • OPTIONAL: on-site notification of staff members moved to #14
  • handle MINIUSER_REQUIRE_VALID_EMAIL
    • send verification email
  • add specific actions to Django's admin to
    • activate / deactivate a user
    • re-send the verification email

On-site notifications

As mentioned in #1, on-site notifications of superusers would be cool.

This is moved to this issue, because it is more like a long-term project.

Will be removed in #1.

Change email address

  • make email address changeable by the user
  • create correspondig view
  • create form (if validation is required; should be required, if not provided by Django's modelfield)
  • consider process of re-verification (if REQUIRE_VALID_EMAIL)

MiniUser's save()-method overwrites is_active

Crazy clicking in the admin panel Manual testing showed, that while changing a MiniUser object in the admin panel, the (given) activation status (is_active) is overwritten by MINIUSER_DEFAULT_ACTIVE.

Found the respective code part in clean()-method. Needs a fix.

Add app to pypi

  • make the package/application installable from pypi

  • Lots of stuff has to be done, because I didn't do this step before. Major effort before 1.0

Enable switching to django-miniuser

Situation:

  • some project was started some time ago. A lot of users are already registered and are using the project and its applications actively.
  • a (very smart) administrator decides to handle user-management with django-miniuser
  • the (existing) user data-sets get migrated from Django's auth.User to miniuser.MiniUser
    • all existing fields get transferred
    • new fields are pre-populated with (sane) default values

Templates need attention

All templates of the app need some attention.

They should be as simple as possible, but include some features of the app.

They should not include any JavaScript code (probably, a fully responsive template-set may be provided within a different repo, probably with another license (depending on used technology and the respective licenses)).

Per object logging

Implement logging per account, meaning per user object.

  • log failed login attempts
  • log password changes
  • log password resets
  • log email changes
  • log profile updates

This feature may be used to include

  • deactivate accounts after x failed logins
  • more details for email verification process

Implementation details:

  • own model
    • user-object; a reference to the user
    • category; CharField with pre-defined values
    • message: CharField or TextField for custom messages

Change password

  • make password changeable by the user
    • create password change view (or re-use Django's)
    • create password change form, that does validation stuff (if required)
    • consider how the process is affected by present settings

Reset password

  • Consider, if passwords should be resettable when there is no VALID_EMAIL address associated? (possible security issue)
    • first thought: passwords should be resetted if the user actually clicks a password reset link sent by mail
  • determine, how long a password reset link should be valid? (-> configurable)
  • implement password reset views
    • trigger password reset
    • enter new password view
    • is an error-page necessary?
  • integrate with admin-backend
    • write corresponding action
    • make it accessible in MiniUser detail view as a button

Custom permissions

IOT enhance the admin panel, create custom permissions. This will enable a more flexible way of user management, because it does not rely exclusively on superusers.

  • create custom permissions
    • view user list
    • activate user
    • deactivate user

Issues

  • if an object/model is accessible in the admin-panel relies on the (given) can_modify-permission. Some dirty hack is required, to enable staff-users to actually view the user list.
  • is_staff allows sign in into the admin panel
  • can_modify is required to actually see a model
  • create some custom admin view, to show the user-list to those users with custom permissions below can_modify.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.