Page MenuHomePhabricator

login.py parameters ignored (or misleading documentation)
Open, LowPublic

Description

According to "pwb.py login -help":

-force       Ignores if the user is already logged in, and tries to log in.

-pass        Useful in combination with -all when you have accounts for
             several sites and use the same password for all of them.
             Asks you for the password, then logs in on all given sites.

-pass:XXXX   Uses XXXX as password. Be careful if you use this
             parameter because your password will be shown on your
             screen, and will probably be saved in your command line
             history. This is NOT RECOMMENDED for use on computers
             where others have either physical or remote access.
             Use -pass instead.

but using "pwb.py login -all -force -pass:xxxxxx", yields:

To force a re-login, please delete the revelant lines from '**\pywikibot.lwp' (or the entire file) and try again.
Password for user MalafayaBot on wikiquote:ka (no characters will be shown):

That is, neither it did a "-force" (apparently, I have to do it manually by deleting the file) nor it assumed the password I passed in the command line (it's asking me for it).

Event Timeline

Malafaya created this task.Aug 12 2015, 6:02 PM
Malafaya raised the priority of this task from to Needs Triage.
Malafaya updated the task description. (Show Details)
Malafaya added a project: Pywikibot-login.py.
Malafaya added a subscriber: Malafaya.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. · View Herald TranscriptAug 12 2015, 6:02 PM
XZise added a subscriber: XZise.Aug 13 2015, 9:38 PM

The -pass parameter is not working as there is currently no sensible way from the script to pass the password through and thus the site thinks no password is entered (T102477: login script -pass parameter ignored).

Not sure what we could do regarding -force though, to make it more usable.

Concerning -force, couldn't we assume it will afect all wikis and just delete the .lwp file? But I believe this parameter is not too important. Maybe just removing it from the usage description and accepted parameters is good enough.

jayvdb added a subscriber: jayvdb.
Malafaya triaged this task as Low priority.Aug 14 2015, 8:33 AM
Malafaya set Security to None.
Restricted Application added a project: Documentation. · View Herald TranscriptApr 17 2018, 2:14 PM