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

signup signin models added #13

Merged
merged 6 commits into from
May 4, 2019
Merged

signup signin models added #13

merged 6 commits into from
May 4, 2019

Conversation

Ermako27
Copy link
Collaborator

No description provided.

Copy link
Collaborator

@nikitarub nikitarub 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,35 @@
const express = require('express');
Copy link
Collaborator

Choose a reason for hiding this comment

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

Убрать mockServer и всё, что с ним связано

actionName: "SUCCESS_SIGNUP"
});
} catch (error) {
state["signUp_errorMessage"] = "у нас не получилось залогинить вас в систему"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Может здесь просто редиректить на страницу входа?
По этой ошибке внутри компоненты редирект на страницу входа

@@ -11,11 +11,11 @@ class SignUpValidator {
if (data.password !== data.passwordRepeat) {
res.password__errorMessage = "пароли не совпадают";
res.passwordRepeat__errorMessage = "пароли не совпадают";
res.status = 0;
res.wasError = 1;
Copy link
Collaborator

Choose a reason for hiding this comment

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

А может просто error вместо wasError?

Copy link
Collaborator

Choose a reason for hiding this comment

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

И делать не 1 в ошибке, а нормальный класс ошибки с описанием и т.п?

@@ -1,6 +1,6 @@
const serverUrl = 'http://80.252.155.65:8010/api';
const serverUrl = 'http://80.252.155.65:8000/api/v0';
Copy link
Collaborator

Choose a reason for hiding this comment

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

Давай вынесем ip в переменную окружения, а то постоянно залетает на гит ?




// static signUp (userData = {}) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Если не нужно — убрать

case "USER_SIGNUP":
SignUpLogic.execLogic(payload,this.state)
break;
/**
Copy link
Collaborator

Choose a reason for hiding this comment

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

Согласен, лучше отдельно

@nikitarub nikitarub added the enhancement New feature or request label May 4, 2019
@nikitarub nikitarub merged commit 464b95d into dev May 4, 2019
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants