teldrive icon indicating copy to clipboard operation
teldrive copied to clipboard

Feature request : allow if user in specific group

Open KMohZaid opened this issue 1 year ago • 0 comments

Hi, I want feature that only allow user to use my host if they are in specific group.

I have checked this login method that check for username, https://github.com/divyam234/teldrive/blob/2172a5af7bd810fbb5741635516975abad2fae52/services/auth.service.go#L125

We can also add group one also

Like if !allowedUsername(username) or !inGroup(grp_id)

I tried to do myself, but can't find how I can do because it seems complicated 😅. I tried to find if it is in ui code but found out that backend is only talking with telegram api and frontend is sending request to backend

But can't find which backend file handling /api/auth/as

Etc.

You will be familiar with TelDrive code so you can implement it surely

KMohZaid avatar Nov 01 '23 09:11 KMohZaid