2020-05-01 09:07:29 +00:00
|
|
|
# Ungleich Account Management Webapp
|
2018-10-14 21:30:58 +00:00
|
|
|
|
2020-05-01 09:07:29 +00:00
|
|
|
This service runs on [account.ungleich.ch](https://account.ungleich.ch/) and
|
|
|
|
allows customers manage their ungleich account (register, edit mail & password,
|
|
|
|
...).
|
2018-10-14 21:30:58 +00:00
|
|
|
|
2021-12-12 19:39:32 +00:00
|
|
|
## Status v2
|
2021-12-12 19:07:32 +00:00
|
|
|
|
|
|
|
* See below ungleichuser/
|
2021-12-12 19:39:32 +00:00
|
|
|
* register view created
|
|
|
|
* Not solved:
|
|
|
|
* email verification *before* user is created
|
|
|
|
* Solved
|
|
|
|
* Finding highest uid, increasing by 1
|
2021-12-12 19:07:32 +00:00
|
|
|
|
2021-12-05 19:53:41 +00:00
|
|
|
## Todos for v2:
|
|
|
|
|
|
|
|
* Rewrite/create new app Django 4.0 based (ungleichuser)
|
|
|
|
* Do not use django-auth-ldap, because it uses python-ldap
|
|
|
|
* Update the template HTML to bootstrap5
|
|
|
|
* Use ldap3
|
|
|
|
* Check/verify the ldap registration
|
|
|
|
* Ensure multiple ldap servers are supported
|
|
|
|
* Cleanup this readme
|
|
|
|
* Use the following "captcha" for all forms:
|
|
|
|
* Extra form field named "random"
|
|
|
|
* Present the user the following text:
|
|
|
|
* Create Dockerfile / ensure it works in kubernetes
|
|
|
|
|
|
|
|
## Next steps
|
|
|
|
|
|
|
|
* Override/use custom form to allow captcha
|
|
|
|
|
2020-05-01 09:07:29 +00:00
|
|
|
## Development Setup
|
|
|
|
|
2021-12-05 17:19:07 +00:00
|
|
|
```
|
|
|
|
python3 -m venv venv
|
|
|
|
. ./venv/bin/activate
|
|
|
|
pip install -r requirements.txt
|
|
|
|
``
|
|
|
|
|
2021-12-05 17:59:19 +00:00
|
|
|
## Functionality
|
|
|
|
|
2021-12-12 19:07:32 +00:00
|
|
|
x Allow user to register in a specific subtree
|
|
|
|
x Verify that user does not exist in another subtree
|
|
|
|
x Assign an id
|
|
|
|
- Allow password reset [via Mail?]
|
2021-12-05 17:59:19 +00:00
|
|
|
- DB usage: for password reset?
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
2021-12-12 19:07:32 +00:00
|
|
|
Via environment variables:
|
2021-12-05 17:59:19 +00:00
|
|
|
|
2021-12-12 19:07:32 +00:00
|
|
|
* LDAPSERVERS=".." -- White space separated list of LDAP-Servers
|
|
|
|
* ADMIN_DN="" -- we use this DN to connect to LDAP
|
|
|
|
* ADMIN_PASSWORD="" -- we use this password to connect to LDAP
|
|
|
|
* SECRET_KEY
|
|
|
|
* DEBUG
|
|
|
|
* ALLOWED_HOSTS
|
|
|
|
|
|
|
|
|
|
|
|
## Views
|
2021-12-05 17:59:19 +00:00
|
|
|
|
|
|
|
### Register view
|
|
|
|
|
|
|
|
Form: [get]
|
|
|
|
|
|
|
|
* username
|
|
|
|
* password1
|
|
|
|
* password2
|
|
|
|
|
|
|
|
Post receiver: [post]
|
|
|
|
|
|
|
|
* E-Mail verification
|
|
|
|
|
|
|
|
E-Mail verify: [get]
|
|
|
|
|
|
|
|
* Create user
|
|
|
|
|
|
|
|
### Password reset view
|
|
|
|
|
|
|
|
* captcha
|
2021-12-12 19:07:32 +00:00
|
|
|
* username or email
|