# WebGUI default account problem

**URL:** https://forum.syncthing.net/t/webgui-default-account-problem/11100
**Category:** Android
**Created:** [December 29, 2017, 10:12am UTC](https://forum.syncthing.net/t/webgui-default-account-problem/11100 "2017-12-29T10:12:58Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![744700595](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/7/b5a626/32.png) [@744700595](https://forum.syncthing.net/u/744700595)
#### Post date: [December 29, 2017, 10:12am UTC](https://forum.syncthing.net/t/webgui-default-account-problem/11100/1 "2017-12-29T10:12:58Z")

</div>

![Screenshot_20171229-173634](https://forum-uploads.syncthingcdn.net/original/2X/1/1a7bf8dd0ca74b232d112aeb5abf612cca7acf21.png) ![QQ图片20171229173528](https://forum-uploads.syncthingcdn.net/original/2X/7/7c6041862314bd92a38679c09ef0612ba36d5aa4.png)

WebGUI default account problem Excuse me, I installed a new version of Android syncthing, modifying the default webui username and password. But as soon as the software is restarted, it is restored to the default user and password. The settings I have modified cannot be saved. I used to save my username password when I used the old version. How should this be solved? Thanks

---

<div class="post-metadata">

### Author: ![AudriusButkevicius](https://forum.syncthing.net/user_avatar/forum.syncthing.net/audriusbutkevicius/32/277_2.png) [@AudriusButkevicius](https://forum.syncthing.net/u/AudriusButkevicius)
#### Post date: [December 29, 2017, 10:42am UTC](https://forum.syncthing.net/t/webgui-default-account-problem/11100/2 "2017-12-29T10:42:36Z")

</div>

This cannot be changed as the android app would not know how to contact the the API. The username is syncthing, the password is the API key.

---

<div class="post-metadata">

### Author: ![canton7](https://forum.syncthing.net/user_avatar/forum.syncthing.net/canton7/32/9528_2.png) [@canton7](https://forum.syncthing.net/u/canton7)
#### Post date: [December 29, 2017, 11:23am UTC](https://forum.syncthing.net/t/webgui-default-account-problem/11100/3 "2017-12-29T11:23:30Z")

</div>

(to be fair, is there a reason the android app can’t specify an explicit api key as an env var?)

---

<div class="post-metadata">

### Author: ![AudriusButkevicius](https://forum.syncthing.net/user_avatar/forum.syncthing.net/audriusbutkevicius/32/277_2.png) [@AudriusButkevicius](https://forum.syncthing.net/u/AudriusButkevicius)
#### Post date: [December 29, 2017, 11:31am UTC](https://forum.syncthing.net/t/webgui-default-account-problem/11100/4 "2017-12-29T11:31:47Z")

</div>

I think because API key is not enough to display the UI, just the rest calls.

---

<div class="post-metadata">

### Author: ![canton7](https://forum.syncthing.net/user_avatar/forum.syncthing.net/canton7/32/9528_2.png) [@canton7](https://forum.syncthing.net/u/canton7)
#### Post date: [December 29, 2017, 11:37am UTC](https://forum.syncthing.net/t/webgui-default-account-problem/11100/5 "2017-12-29T11:37:41Z")

</div>

It’s what SyncTrayzor uses, and that’s enough to display the web UI. I do get the ability to intercept all http requests and add the API key header though, which the android app perhaps doesn’t have.

---

<div class="post-metadata">

### Author: ![AudriusButkevicius](https://forum.syncthing.net/user_avatar/forum.syncthing.net/audriusbutkevicius/32/277_2.png) [@AudriusButkevicius](https://forum.syncthing.net/u/AudriusButkevicius)
#### Post date: [December 29, 2017, 11:49am UTC](https://forum.syncthing.net/t/webgui-default-account-problem/11100/6 "2017-12-29T11:49:31Z")

</div>

That must be it, as it’s using androids standard webview.

---

<div class="post-metadata">

### Author: ![Martchus](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/m/e99b99/32.png) [@Martchus](https://forum.syncthing.net/u/Martchus)
#### Post date: [December 29, 2017, 10:07pm UTC](https://forum.syncthing.net/t/webgui-default-account-problem/11100/7 "2017-12-29T22:07:58Z")

</div>

Good to know that is is possible to skip the password adding the API key to every HTTP request. I maybe implement this for Syncthing Tray, too.

Currently, in Syncthing Tray I simply let the user enter the password manually. For the app that should not be the default, but could be an advanced option.
