{"thread":{"id":"54957","subject":"[PATCH v4] git-send-email.txt: mention less secure app access with Gmail","startedAt":"2021-01-08T04:18:04Z","lastAt":"2021-01-08T06:46:23Z","messageCount":2,"participants":["Denton Liu","Junio C Hamano"],"isPatch":true,"patchVersion":4,"patchTotal":null},"messages":[{"id":"413780","messageId":"4303fab303fb59b67b8fda036256ae61a528dfc1.1610079311.git.liu.denton@gmail.com","threadId":"54957","inReplyTo":null,"subject":"[PATCH v4] git-send-email.txt: mention less secure app access with Gmail","fromName":"Denton Liu","fromEmail":"liu.denton@gmail.com","sentAt":"2021-01-08T04:17:17Z","receivedAt":"2021-01-08T04:18:04Z","isPatch":true,"sender":{"key":"liu.denton@gmail.com","avatar":"https://avatars.githubusercontent.com/u/9620836?v=4"},"body":"From: Vasyl Vavrychuk <vvavrychuk@gmail.com>\n\nGoogle may have changed Gmail security and now less secure app access\nneeds to be explicitly enabled if two-factor authentication is not in\nplace, otherwise send-email fails with:\n\n\t5.7.8 Username and Password not accepted. Learn more at\n\t5.7.8  https://support.google.com/mail/?p=BadCredentials\n\nDocument steps required to make this work.\n\nSigned-off-by: Vasyl Vavrychuk <vvavrychuk@gmail.com>\nSigned-off-by: Junio C Hamano <gitster@pobox.com>\n[dl: Clean up commit message and incorporate suggestions into patch.]\nSigned-off-by: Denton Liu <liu.denton@gmail.com>\n---\nRange-diff against v3:\n1:  274475559a ! 1:  4303fab303 git-send-email.txt: mention less secure app access with Gmail\n    @@\n      ## Metadata ##\n    -Author: Denton Liu <liu.denton@gmail.com>\n    +Author: Vasyl Vavrychuk <vvavrychuk@gmail.com>\n     \n      ## Commit message ##\n         git-send-email.txt: mention less secure app access with Gmail\n    @@ Commit message\n     \n         Document steps required to make this work.\n     \n    -    Original-patch-by: Vasyl Vavrychuk <vvavrychuk@gmail.com>\n    +    Signed-off-by: Vasyl Vavrychuk <vvavrychuk@gmail.com>\n    +    Signed-off-by: Junio C Hamano <gitster@pobox.com>\n    +    [dl: Clean up commit message and incorporate suggestions into patch.]\n     \n      ## Documentation/git-send-email.txt ##\n     @@ Documentation/git-send-email.txt: edit ~/.gitconfig to specify your account settings:\n\n Documentation/git-send-email.txt | 6 +++++-\n 1 file changed, 5 insertions(+), 1 deletion(-)\n\ndiff --git a/Documentation/git-send-email.txt b/Documentation/git-send-email.txt\nindex 0a69810147..0db0783f2f 100644\n--- a/Documentation/git-send-email.txt\n+++ b/Documentation/git-send-email.txt\n@@ -494,10 +494,14 @@ edit ~/.gitconfig to specify your account settings:\n \tsmtpServerPort = 587\n ----\n \n-If you have multifactor authentication setup on your gmail account, you will\n+If you have multi-factor authentication set up on your Gmail account, you will\n need to generate an app-specific password for use with 'git send-email'. Visit\n https://security.google.com/settings/security/apppasswords to create it.\n \n+If you do not have multi-factor authentication set up on your Gmail account,\n+you will need to allow less secure app access. Visit\n+https://myaccount.google.com/lesssecureapps to enable it.\n+\n Once your commits are ready to be sent to the mailing list, run the\n following commands:\n \n-- \n2.30.0.284.gd98b1dd5ea\n\n"},{"id":"413783","messageId":"xmqq1rewj5a7.fsf@gitster.c.googlers.com","threadId":"54957","inReplyTo":"4303fab303fb59b67b8fda036256ae61a528dfc1.1610079311.git.liu.denton@gmail.com","subject":"Re: [PATCH v4] git-send-email.txt: mention less secure app access with Gmail","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2021-01-08T06:45:20Z","receivedAt":"2021-01-08T06:46:23Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Denton Liu <liu.denton@gmail.com> writes:\n\n> From: Vasyl Vavrychuk <vvavrychuk@gmail.com>\n>\n> Google may have changed Gmail security and now less secure app access\n> needs to be explicitly enabled if two-factor authentication is not in\n> place, otherwise send-email fails with:\n>\n> \t5.7.8 Username and Password not accepted. Learn more at\n> \t5.7.8  https://support.google.com/mail/?p=BadCredentials\n>\n> Document steps required to make this work.\n>\n> Signed-off-by: Vasyl Vavrychuk <vvavrychuk@gmail.com>\n> Signed-off-by: Junio C Hamano <gitster@pobox.com>\n> [dl: Clean up commit message and incorporate suggestions into patch.]\n> Signed-off-by: Denton Liu <liu.denton@gmail.com>\n> ---\n\nThanks for tying loose ends.  Will replace.\n\n> Range-diff against v3:\n> 1:  274475559a ! 1:  4303fab303 git-send-email.txt: mention less secure app access with Gmail\n>     @@\n>       ## Metadata ##\n>     -Author: Denton Liu <liu.denton@gmail.com>\n>     +Author: Vasyl Vavrychuk <vvavrychuk@gmail.com>\n>      \n>       ## Commit message ##\n>          git-send-email.txt: mention less secure app access with Gmail\n>     @@ Commit message\n>      \n>          Document steps required to make this work.\n>      \n>     -    Original-patch-by: Vasyl Vavrychuk <vvavrychuk@gmail.com>\n>     +    Signed-off-by: Vasyl Vavrychuk <vvavrychuk@gmail.com>\n>     +    Signed-off-by: Junio C Hamano <gitster@pobox.com>\n>     +    [dl: Clean up commit message and incorporate suggestions into patch.]\n>      \n>       ## Documentation/git-send-email.txt ##\n>      @@ Documentation/git-send-email.txt: edit ~/.gitconfig to specify your account settings:\n>\n>  Documentation/git-send-email.txt | 6 +++++-\n>  1 file changed, 5 insertions(+), 1 deletion(-)\n>\n> diff --git a/Documentation/git-send-email.txt b/Documentation/git-send-email.txt\n> index 0a69810147..0db0783f2f 100644\n> --- a/Documentation/git-send-email.txt\n> +++ b/Documentation/git-send-email.txt\n> @@ -494,10 +494,14 @@ edit ~/.gitconfig to specify your account settings:\n>  \tsmtpServerPort = 587\n>  ----\n>  \n> -If you have multifactor authentication setup on your gmail account, you will\n> +If you have multi-factor authentication set up on your Gmail account, you will\n>  need to generate an app-specific password for use with 'git send-email'. Visit\n>  https://security.google.com/settings/security/apppasswords to create it.\n>  \n> +If you do not have multi-factor authentication set up on your Gmail account,\n> +you will need to allow less secure app access. Visit\n> +https://myaccount.google.com/lesssecureapps to enable it.\n> +\n>  Once your commits are ready to be sent to the mailing list, run the\n>  following commands:\n"}]}