PHP Classes

Add user password

Recommend this page to a friend!

      PHP Git Client Class  >  All threads  >  Add user password  >  (Un) Subscribe thread alerts  
Subject:Add user password
Summary:login/password
Messages:8
Author:Leclere Didier
Date:2016-12-07 15:19:25
 

  1. Add user password   Reply   Report abuse  
Picture of Leclere Didier Leclere Didier - 2016-12-07 15:19:25
Hello,

I need to sign in to login / password. How should it be done?

Thank you very much.

  2. Re: Add user password   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2016-12-07 20:08:25 - In reply to message 1 from Leclere Didier
Did you try https://user:password@domain/path/to.git ?

  3. Re: Add user password   Reply   Report abuse  
Picture of Leclere Didier Leclere Didier - 2016-12-08 12:10:04 - In reply to message 2 from Manuel Lemos
Yes i used this style of url but i have error :

[91] It was specified an invalid user or an incorrect password

  4. Re: Add user password   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2016-12-09 06:19:51 - In reply to message 3 from Leclere Didier
Let me try to reproduce the problem. Is it in GitHub or someother public Git hosting site? Did you make it private somehow?

  5. Re: Add user password   Reply   Report abuse  
Picture of Vijay Vijay - 2017-04-20 15:43:35 - In reply to message 4 from Manuel Lemos
Am also getting the same Error: It was specified an invalid user or an incorrect password.
But i tried the same url with credentials as mentioned by you in git bash i was able to checkout from repo.

  6. Re: Add user password   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2017-04-20 20:45:49 - In reply to message 5 from Vijay
Did you also try https://user:password@domain/path/to.git ?

Make sure if user or password have special characters, use URLEncode to encode the user and password while forming the URL.

  7. Re: Add user password   Reply   Report abuse  
Picture of Vijay Vijay - 2017-04-21 11:44:33 - In reply to message 6 from Manuel Lemos
There is no special character in the credential

  8. Re: Add user password   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2017-04-21 14:13:56 - In reply to message 7 from Vijay
Would it be possible to share the URL of the Git repository?