65 Commits (24a9e3ae6085fe5b1a1e324900f86da851c7c278)
 

Author SHA1 Message Date
PCoder 24a9e3ae60 Add /staticfiles to .gitignore 4 years ago
PCoder 93041f4539 Update changelog 4 years ago
PCoder 6abb78db2d Update .gitignore 4 years ago
PCoder 2196390d7a Handle more errors
Internal Server Error: /ipv6/work/signup/
Traceback (most recent call last):
  File "/home/app/pyvenv/lib/python3.5/site-packages/django/core/handlers/exception.py", line 34, in inner
    response = get_response(request)
  File "/home/app/pyvenv/lib/python3.5/site-packages/django/core/handlers/base.py", line 126, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/home/app/pyvenv/lib/python3.5/site-packages/django/core/handlers/base.py", line 124, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "./users/views.py", line 19, in signup
    create_user(username, raw_password, first_name, last_name, email)
  File "./users/ldap_funcs.py", line 18, in create_user
    uidNumber = get_max_uid() + 1
  File "./users/ldap_funcs.py", line 79, in get_max_uid
    return int(handler.read())
ValueError: invalid literal for int() with base 10: ''
4 years ago
PCoder 506679b8a0 Bugfix: TypeError: write() argument must be str, not int
Internal Server Error: /ipv6/work/signup/
Traceback (most recent call last):
  File "/home/app/pyvenv/lib/python3.5/site-packages/django/core/handlers/exception.py", line 34, in inner
    response = get_response(request)
  File "/home/app/pyvenv/lib/python3.5/site-packages/django/core/handlers/base.py", line 126, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/home/app/pyvenv/lib/python3.5/site-packages/django/core/handlers/base.py", line 124, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "./users/views.py", line 19, in signup
    create_user(username, raw_password, first_name, last_name, email)
  File "./users/ldap_funcs.py", line 38, in create_user
    set_max_uid(uidNumber)
  File "./users/ldap_funcs.py", line 68, in set_max_uid
    handler.write(max_uid)
TypeError: write() argument must be str, not int
4 years ago
PCoder 0fb34dc560 Save uidNumber used for the latest user created for future reference 4 years ago
PCoder a2550e4bff Remove redundant code 4 years ago
PCoder 1bd4b42fe9 Bugfix: use correct setting name 4 years ago
PCoder fd8f5fc1d3 Bugfix: use correct function and return value 4 years ago
PCoder 88a58595fb Refactor code 4 years ago
PCoder c72f97de42 Add code to create user's unix profile also 4 years ago
PCoder f3d90a2b7d Add utility code to get max UID
Other changes:
- Introduce logging
- Introduce .env config parameters
  - LDAP_SEARCH_BASE: The base used in the LDAP search to find uid
  - IPV6_WORK_USER_GROUP: The LDAP group to which the newly added
      user should belong to
4 years ago
PCoder 8e07151837 Add ldap3 specific logging 4 years ago
PCoder c670eb52e9 Fix bug reading boolean config casting 4 years ago
PCoder 78098a3692 Update changelog 4 years ago
PCoder 38c7283cb6 Enable logging by setting by setting `ENABLE_DEBUG_LOG` in .env
Also set the modules to log by using `MODULES_TO_LOG` config
parameter in .env
4 years ago
PCoder bbb6f3290d Add CHANGELOG.md 4 years ago
PCoder fd2491145a Remove Search and Tags links from the navbar 4 years ago
PCoder f112b85f17 Reorganize imports 4 years ago
PCoder 1e457ea1f0 Remove ipv6middleware 4 years ago
PCoder 21228e14bb Rename uwsgi.ini to uwsgi.ini.sample 4 years ago
PCoder f4c5ad660f Merge 4 years ago
mravi da4e6cea16 Initial commit 4 years ago
PCoder 472f6a352f Update requirements.txt 4 years ago
PCoder 598004efa9 Add .idea to .gitignore 4 years ago
PCoder 7151564b28 Remove unneeded items from footer 4 years ago
aatish 4e460726dd use x-real-ip headers 5 years ago
aatish 8594e604fc add logo 5 years ago
aatish 307f25efb7 fix index page link 5 years ago
aatish 3a76ab9a76 use session_cookie_name 5 years ago
aatish 3fd4273b5f add media and static url based on script_name 5 years ago
aatish 635b929b24 remove static from git 5 years ago
aatish 1287105067 add CSRF_TRUSTED_ORIGINS 5 years ago
aatish d8705d4946 make force_script_name configurable 5 years ago
aatish 216a5c3c9f force script name so it works behind proxy_pass 5 years ago
aatish bca7a22085 fix dn generation 5 years ago
aatish b4bf9318df configurable database backend 5 years ago
aatish 081e11400b use signup view rather than redirecting 5 years ago
aatish dd8701409a add logout button 5 years ago
aatish 453cdf86c4 Dockerfile changes for ldap 5 years ago
aatish a932682102 add python-ldap to requirements, was missing 5 years ago
aatish 67464b906f landing page changes 5 years ago
aatish ed99dad379 link signup to account.ungleich.ch, landing page changes 5 years ago
aatish b6f5fd5882 flake8 fixes 5 years ago
aatish c42160193e ensure ipv4/ipv6 test is included 5 years ago
aatish 241ad0deac Be able to come back to home page by clicking on logo/ipv6.work button on the left 5 years ago
aatish eab9d7b714 add ldap authentication and function to create ldap user on signup 5 years ago
aatish be949448c5 display 3 jobs in home 5 years ago
aatish d13d3f53d5 create management command to create test users, use it in Docker 5 years ago
aatish d3ade15c9a add python decouple 5 years ago