Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement session authentication (removing uuid from url) #72

Merged
merged 114 commits into from
Dec 30, 2023

Conversation

Iam54r1n4
Copy link
Contributor

No description provided.

Sarina added 30 commits December 10, 2023 09:49
- filling the username and password (password saved in database as
  plaintext)
because we send username and password with base64 encoding, so we're not
limited to assci
hiddifypanel/models/admin.py Show resolved Hide resolved


@event.listens_for(AdminUser, "before_insert")
def before_insert(mapper, connection, target):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ببریم توی baseaccount

@@ -171,6 +174,16 @@ def bulk_register_admins(users=[], commit=True):


def current_admin_or_owner():
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

میدونم خودم نوشتم ولی چرا اخه؟ریسک امنیتی ایجاد میکنه

hiddifypanel/models/base_account.py Show resolved Hide resolved
hiddifypanel/models/base_account.py Show resolved Hide resolved



def has_permission(admin) -> bool:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

خیلی پرمیژن ها قاطی پاتی شده

else:
values['proxy_path'] = hconfig(ConfigEnum.proxy_path_admin)

if hiddify.is_api_v1_call(endpoint=endpoint) and 'admin_uuid' not in values:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

این چیه؟

@hiddify-com hiddify-com merged commit fb21765 into hiddify:main Dec 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants