NatLee / telepy

A Django-based web application for managing and monitoring the reverse SSH tunnels or jump servers.
MIT License
4 stars 1 forks source link

Feat/add user management #22

Closed NatLee closed 3 months ago

NatLee commented 3 months ago

這個PR增加了兩項功能

  1. 第一位使用者(不管用Google登入還是用腳本建立)一定得被設為superuser
  2. 不讓使用者註冊的設定(in site_settings),預設為禁止,目前只能在admin page進行更動

關於2有個缺點,就是每當設定有變更(例如增加新設定)的時候,都要重新migrate該table :'(