PretendoNetwork / account

Pretendo account server
GNU Affero General Public License v3.0
56 stars 28 forks source link

Email validation API endpoints aren't implemented #20

Closed InternalLoss closed 1 year ago

InternalLoss commented 2 years ago

The relevant inputs to both resend the confirmation code email (which should change the confirmation code), and entering the confirmation code, do not work. I've purposefully kept my PNID unverified to ensure this is fixed.

InternalLoss commented 2 years ago

Further context:

Console will PUT https://account.nintendo.net/v1/api/support/email_confirmation/$NNID_PID/$6DIGITVERIFCODE

If invalid: HTTP 400, and error:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?><errors><error><code>0116</code><message>Missing or invalid verification code</message></error></errors>

If valid: HTTP 200 OK

Validated date should be set to current date and time as the console will request this from profile:

        <validated>Y</validated>
        <validated_date>2021-03-05T13:43:12</validated_date>
InternalLoss commented 2 years ago

Email from Nintendo:


This email has been automatically sent from Nintendo because this email address was registered for a Nintendo Network ID.

ID: XXX

Please click on the following link to complete the registration of this email address for the Nintendo Network ID.
https://id.nintendo.net/account/email-confirmation?token=XXX&optin=true

Wii U and Nintendo 3DS users can also complete the registration using the following confirmation code:
YYY

Please note: The link and confirmation code are valid for a period of 24 hours from the time this email was sent. If that 24-hour period has expired, you will need a new link and confirmation code.

Wii U users:
1) From the user-selection screen of your Wii U, select the user linked with this Nintendo Network ID
2) When "Your email address has not been confirmed yet" is displayed, select Confirmation Code and enter the code displayed above, or select Resend Email if you need a new confirmation code or link

Nintendo 3DS users:
1) From the System Settings, select Nintendo Network ID Settings, then Email Address Verification
2) Select Enter Confirmation Code and enter the code displayed above, or select Resend Email if you require a new confirmation code or link

If you did not register this email address for a Nintendo Network ID, please ignore this email.

--------------------
NOTE: Please do not reply to this email address.

Please contact us by email for any enquiries. Local contact details for Nintendo Customer Support can be found at: contact.nintendo.eu

Nintendo of Europe GmbH, Herriotstr. 4, 60528 Frankfurt am Main, Germany
VAT number: DE132095955. Registered at: Amtsgericht Frankfurt am Main HRB 101840. Geschäftsführer (Managing Director): Koji Miyake

This email has been sent to you in English as your Nintendo Network ID is linked to a console with English set as its system language.```
InternalLoss commented 2 years ago

The console can also ask for another new code to be sent, using GET https://account.pretendo.cc/v1/api/support/resend_confirmation/

jonbarrow commented 1 year ago

Endpoints have been added