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

feat: authorise agent module #49

Open
wants to merge 2 commits into
base: demo
Choose a base branch
from

Conversation

kitanoyoru
Copy link

No description provided.

Copy link
Member

@MksmOrlov MksmOrlov left a comment

Choose a reason for hiding this comment

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

Не работает, кажется не добавили scs-ку с пользователем, где описан логин и пароль
image

Copy link
Member

@MksmOrlov MksmOrlov left a comment

Choose a reason for hiding this comment

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

и всё ещё не авторизовывает с первой попытки

@@ -0,0 +1,8 @@
from sc_kpm import ScModule

from .AuthoriseUserAgent import AuthoriseUserAgent
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
from .AuthoriseUserAgent import AuthoriseUserAgent
from .authorise_user_agent import AuthoriseUserAgent

ну не работает же

Comment on lines +113 to +116
def _validate_input_args(self, email: str, password: str) -> int:
# TODO: validate using regexp
if email == "" or password == "":
return 0
Copy link
Member

Choose a reason for hiding this comment

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

валидировать надо в первую очередь сами узлы, а не их контент. Есть метод is_valid() у ScAddr

Copy link
Member

Choose a reason for hiding this comment

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

так
image

@MksmOrlov MksmOrlov mentioned this pull request May 17, 2024
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.

None yet

2 participants