From: CYBERDEViLNL Date: Thu, 8 Nov 2018 14:29:38 +0000 (+0100) Subject: * manual update X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=ca2430335ba0ab006c749a8b65dccacde628c8c9;p=diaspy.git * manual update --- diff --git a/manual/connection.markdown b/manual/connection.markdown index 24f6379..ea57d0d 100644 --- a/manual/connection.markdown +++ b/manual/connection.markdown @@ -26,39 +26,11 @@ do so. Logging in with `Connection()` is done via `login()` method. **Example:** - connection = diaspy.connection.Connection(pod='https://pod.example.com') - connection.login('user', 'password') - - OR - connection = diaspy.connection.Connection(pod='https://pod.example.com', username='user', password='password') connection.login() - -In the example above two ways of logging in were shown. -In the first one only *pod* is passed to the object and -*username* and *password* were passed to `login()` method. - -In the second one everything is passed directly to the object being -created and `login()` is called without any arguments. - -Both ways are valid and will result in exactly the same connection. -But consider the following example: - - connection = diaspy.connection.Connection(pod='https://pod.example.com', - username='user', - password='password') - connection.login(username='loser', password='passphrase') - -This code will result in connection with username `loser` and -password `passphrase` because data passed to `login()` overrides data -passed directly to object. - -**Remember:** if you pass something to `login()` it will *override* -credentials set when the connection was created. - ---- ##### Authentication