Skip to content

Commit

Permalink
WHISTLE-250: add default user as admin of VoIP services; add voip_ser…
Browse files Browse the repository at this point in the history
…vices to user obj for winkstart
  • Loading branch information
James Aimonetti committed Dec 5, 2011
1 parent 090194a commit 0903fa0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions whistle_apps/apps/crossbar/src/crossbar.erl
Expand Up @@ -181,6 +181,11 @@ create_init_user(Db) ->

User = wh_json:from_list([{<<"username">>, Username}
,{<<"verified">>, true}
,{<<"apps">>, wh_json:from_list([{<<"voip">>, wh_json:from_list([{<<"label">>, <<"VoIP Services">>}
,{<<"icon">>, <<"voip_services">>}
,{<<"api_url">>, list_to_binary(["http://", net_adm:localhost(), ":8000/v1"])}
,{<<"admin">>, true}
])}])}
,{<<"pvt_md5_auth">>, MD5}
,{<<"pvt_sha1_auth">>, SHA1}
]),
Expand Down

0 comments on commit 0903fa0

Please sign in to comment.