Raesquiv13 / gpos-System

Sistema de punto de venta
1 stars 0 forks source link

Hotfix for API signin, the function CreateToken is not receiving the correct parameter #21

Closed Raesquiv13 closed 4 years ago

Raesquiv13 commented 4 years ago

After authorization, system is not receiving the user because system is trying to process an array.

Steps to reproduce the bug:

  1. Execute the test case(https://gpossystem.testrail.io/index.php?/cases/view/15)
  2. Save the token value.
  3. Go to https://jwt.io/
  4. Find the encoded text box
  5. Paste the token
  6. Find the decoded section
  7. You will see 3 kind of box: Headers, Payload, Verify signature.
  8. Focus on Payload, inside the box you should find 3 values: sub, iat, exp

Expected Result:

Payload should find 3 values: sub, iat, exp

Actual Result:

Payload shows only 2 values: iat, exp

Raesquiv13 commented 4 years ago

Test case:

Creation Signin: https://gpossystem.testrail.io/index.php?/cases/view/21

Signup: https://gpossystem.testrail.io/index.php?/cases/view/22

Execution Siginin https://gpossystem.testrail.io/index.php?/tests/view/19&group_by=cases:section_id&group_order=asc&group_id=15

Signup https://gpossystem.testrail.io/index.php?/tests/view/20&group_by=cases:section_id&group_order=asc&group_id=15