Create DbSession logic for confirmRegistration request

Description

Plan:

  • request url - confirmRegistration-registrationToken

  • add processConfirmRegistrationQuery function in DbSession,
    QByteArray DbObjectsCollection:rocessConfirmRegistrationQuery(const QString& registrationToken)

  • it shouldn't be added to m_processors, instead of it should be procced like this:

    • after we search all m_processors functions and didnt find match in QByteArray DbObjectsCollection:rocess and before returning INCORRECT_REQUEST_ERROR should be code, that will check does queryType match confirmRegistration-* pattern

    • if it is match - extract registrationToken and pass it into processConfirmRegistrationQuery

  • processConfirmRegistrationQuery should check registrationToken:

    • if it is exists - insert tmpUser into users table

      • if insertion was success, delete tmpUser from singup table and return some simple html with congratulations

      • if insertion wasn't success return simple html that tells about error and suggests try to refresh page

    • if registration token doesnot exists - return some simple html with error description

Environment

None

Test scenario

None

Parent branch

devel

Status

Assignee

Edward Ryabikov

Reporter

Mark Zaslavskiy

Labels

None

External issue ID

None

Leader

Sergey Balandin

Architect

Kirill Krinkin

Customer visible

None

Fix versions

Priority

00.Blocker
Configure