From ca2430335ba0ab006c749a8b65dccacde628c8c9 Mon Sep 17 00:00:00 2001 From: CYBERDEViLNL Date: Thu, 8 Nov 2018 15:29:38 +0100 Subject: [PATCH] * manual update --- manual/connection.markdown | 28 ---------------------------- 1 file changed, 28 deletions(-) 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 -- 2.25.1