mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-20 06:25:07 +00:00
clean up password reset code (#375)
This commit is contained in:
@@ -36,7 +36,7 @@ message Account {
|
||||
// if the account is verified
|
||||
bool verified = 6;
|
||||
// date of verification
|
||||
int64 verificationDate = 7;
|
||||
int64 verification_date = 7;
|
||||
// Store any custom data you want about your users in this fields.
|
||||
map<string,string> profile = 8;
|
||||
}
|
||||
@@ -114,9 +114,9 @@ message UpdatePasswordRequest {
|
||||
// the account id
|
||||
string userId = 1;
|
||||
// the old password
|
||||
string oldPassword = 2;
|
||||
string old_password = 2;
|
||||
// the new password
|
||||
string newPassword = 3;
|
||||
string new_password = 3;
|
||||
// confirm new password
|
||||
string confirm_password = 4;
|
||||
}
|
||||
@@ -127,7 +127,7 @@ message UpdatePasswordResponse {
|
||||
// Read a session by the session id. In the event it has expired or is not found and error is returned.
|
||||
message ReadSessionRequest {
|
||||
// The unique session id
|
||||
string sessionId = 1;
|
||||
string session_id = 1;
|
||||
}
|
||||
|
||||
message ReadSessionResponse {
|
||||
@@ -155,7 +155,7 @@ message LoginResponse {
|
||||
// Logout a user account
|
||||
message LogoutRequest {
|
||||
// the session id for the user to logout
|
||||
string sessionId = 1;
|
||||
string session_id = 1;
|
||||
}
|
||||
|
||||
message LogoutResponse {
|
||||
@@ -185,13 +185,13 @@ message SendVerificationEmailRequest{
|
||||
string subject = 2;
|
||||
// Text content of the email. Don't forget to include the string '$micro_verification_link' which will be replaced by the real verification link
|
||||
// HTML emails are not available currently.
|
||||
string textContent = 3;
|
||||
string text_content = 3;
|
||||
// The url to redirect to after successful verification
|
||||
string redirectUrl = 4;
|
||||
string redirect_url = 4;
|
||||
// The url to redirect to incase of failure
|
||||
string failureRedirectUrl = 5;
|
||||
string failure_redirect_url = 5;
|
||||
// Display name of the sender for the email. Note: the email address will still be 'noreply@email.m3ocontent.com'
|
||||
string fromName = 6;
|
||||
string from_name = 6;
|
||||
}
|
||||
|
||||
message SendVerificationEmailResponse{}
|
||||
@@ -205,24 +205,26 @@ message SendPasswordResetEmailRequest {
|
||||
string subject = 2;
|
||||
// Text content of the email. Don't forget to include the string '$code' which will be replaced by the real verification link
|
||||
// HTML emails are not available currently.
|
||||
string textContent = 3;
|
||||
string text_content = 3;
|
||||
// Display name of the sender for the email. Note: the email address will still be 'noreply@email.m3ocontent.com'
|
||||
string fromName = 4;
|
||||
string from_name = 4;
|
||||
// Number of secs that the password reset email is valid for, defaults to 1800 secs (30 mins)
|
||||
int64 expiration = 5;
|
||||
}
|
||||
|
||||
message SendPasswordResetEmailResponse {
|
||||
}
|
||||
|
||||
// Reset password with the code sent by the "SendPasswordResetEmail" endoint.
|
||||
// Reset password with the code sent by the "SendPasswordResetEmail" endpoint.
|
||||
message ResetPasswordRequest {
|
||||
// the email to reset the password for
|
||||
string email = 1;
|
||||
// The code from the verification email
|
||||
string code = 2;
|
||||
// the new password
|
||||
string newPassword = 3;
|
||||
string new_password = 3;
|
||||
// confirm new password
|
||||
string confirmPassword = 4;
|
||||
string confirm_password = 4;
|
||||
}
|
||||
|
||||
message ResetPasswordResponse {}
|
||||
@@ -246,9 +248,9 @@ message SendMagicLinkRequest {
|
||||
string subject = 2;
|
||||
// Text content of the email. Don't forget to include the string '$micro_verification_link' which will be replaced by the real verification link
|
||||
// HTML emails are not available currently.
|
||||
string textContent = 3;
|
||||
string text_content = 3;
|
||||
// Display name of the sender for the email. Note: the email address will still be 'support@m3o.com'
|
||||
string fromName = 4;
|
||||
string from_name = 4;
|
||||
// Your web site address, example www.example.com or user.example.com
|
||||
string address = 5;
|
||||
// Endpoint name where your http request handler handles MagicLink by
|
||||
|
||||
Reference in New Issue
Block a user