Browse Source

xmpp password changes

Bob Mottram 8 years ago
parent
commit
0147cadc53

+ 0
- 4
src/freedombone-app-emacs View File

35
 emacs_variables=(USB_MOUNT
35
 emacs_variables=(USB_MOUNT
36
                  MY_USERNAME)
36
                  MY_USERNAME)
37
 
37
 
38
-function change_password_emacs {
39
-    echo -n ''
40
-}
41
-
42
 function reconfigure_emacs {
38
 function reconfigure_emacs {
43
     echo -n ''
39
     echo -n ''
44
 }
40
 }

+ 0
- 4
src/freedombone-app-irc View File

404
     APP_INSTALLED=1
404
     APP_INSTALLED=1
405
 }
405
 }
406
 
406
 
407
-function change_password_irc {
408
-    ${PROJECT_NAME}-pass -u $1 -a irc -p "$2"
409
-}
410
-
411
 function reconfigure_irc {
407
 function reconfigure_irc {
412
     echo -n ''
408
     echo -n ''
413
 }
409
 }

+ 0
- 4
src/freedombone-app-syncthing View File

227
     APP_INSTALLED=1
227
     APP_INSTALLED=1
228
 }
228
 }
229
 
229
 
230
-function change_password_syncthing {
231
-    echo -n ''
232
-}
233
-
234
 function reconfigure_syncthing {
230
 function reconfigure_syncthing {
235
     echo -n ''
231
     echo -n ''
236
 }
232
 }

+ 0
- 4
src/freedombone-app-tox View File

106
     APP_INSTALLED=1
106
     APP_INSTALLED=1
107
 }
107
 }
108
 
108
 
109
-function change_password_tox {
110
-    echo -n ''
111
-}
112
-
113
 function mesh_tox_qtox {
109
 function mesh_tox_qtox {
114
     if [ ! ${rootdir}$INSTALL_DIR ]; then
110
     if [ ! ${rootdir}$INSTALL_DIR ]; then
115
         INSTALL_DIR=${rootdir}/root/build
111
         INSTALL_DIR=${rootdir}/root/build

+ 0
- 4
src/freedombone-app-vim View File

38
 vim_variables=(MY_USERNAME
38
 vim_variables=(MY_USERNAME
39
                VIM_MUTT_EDITOR)
39
                VIM_MUTT_EDITOR)
40
 
40
 
41
-function change_password_vim {
42
-    echo -n ''
43
-}
44
-
45
 function reconfigure_vim {
41
 function reconfigure_vim {
46
     echo -n ''
42
     echo -n ''
47
 }
43
 }

+ 13
- 1
src/freedombone-app-xmpp View File

107
 }
107
 }
108
 
108
 
109
 function change_password_xmpp {
109
 function change_password_xmpp {
110
-    echo -n ''
110
+    curr_username="$1"
111
+    new_user_password="$2"
112
+
113
+    read_config_param DEFAULT_DOMAIN_NAME
114
+
115
+    ${PROJECT_NAME}-pass -u $curr_username -a xmpp -p "$new_user_password"
116
+
117
+    # TODO: this is currently interactive. Really there needs to be a
118
+    # non-interactive password change option for prosodyctl
119
+    clear
120
+    echo ''
121
+    echo $'Currently Prosody requires password changes to be done interactively'
122
+    prosodyctl passwd ${curr_username}@${DEFAULT_DOMAIN_NAME}
111
 }
123
 }
112
 
124
 
113
 function reconfigure_xmpp {
125
 function reconfigure_xmpp {

+ 1
- 1
src/freedombone-tests View File

61
     FILES=/usr/share/${PROJECT_NAME}/apps/${PROJECT_NAME}-app-*
61
     FILES=/usr/share/${PROJECT_NAME}/apps/${PROJECT_NAME}-app-*
62
 
62
 
63
     # check that these functions exist
63
     # check that these functions exist
64
-    interface_functions=( install remove backup_local backup_remote restore_local restore_remote upgrade reconfigure change_password )
64
+    interface_functions=( install remove backup_local backup_remote restore_local restore_remote upgrade reconfigure )
65
 
65
 
66
     # for all the app scripts
66
     # for all the app scripts
67
     for filename in $FILES
67
     for filename in $FILES