Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
poezio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
205
Issues
205
List
Boards
Labels
Service Desk
Milestones
Merge Requests
10
Merge Requests
10
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
poezio
poezio
Commits
7509fb00
Commit
7509fb00
authored
Jan 13, 2011
by
louiz’
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prompt password if no password is provided in config file
parent
c94be476
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
data/default_config.cfg
data/default_config.cfg
+1
-0
src/connection.py
src/connection.py
+2
-1
No files found.
data/default_config.cfg
View file @
7509fb00
...
...
@@ -28,6 +28,7 @@ default_nick =
jid =
# A password is needed only if you specified a jid. It will be ignored otherwise
# If you leave this empty, the password will be asked at each startup
password =
# the rooms you will join automatically on startup, with associated nickname or not
...
...
src/connection.py
View file @
7509fb00
...
...
@@ -25,6 +25,7 @@ from gettext import (bindtextdomain, textdomain, bind_textdomain_codeset,
gettext
as
_
)
import
sys
import
getpass
import
sleekxmpp
from
config
import
config
...
...
@@ -43,7 +44,7 @@ class Connection(sleekxmpp.ClientXMPP):
# many features will be handled diferently
# depending on this setting
jid
=
'%s/%s'
%
(
config
.
get
(
'jid'
,
''
),
resource
)
password
=
config
.
get
(
'password'
,
''
)
password
=
config
.
get
(
'password'
,
''
)
or
getpass
.
getpass
()
else
:
# anonymous auth
self
.
anon
=
True
jid
=
'%s/%s'
%
(
config
.
get
(
'server'
,
'anon.louiz.org'
),
resource
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment