Community discussions

MikroTik App
 
User avatar
Zayas
just joined
Topic Author
Posts: 2
Joined: Mon Jan 08, 2024 4:13 pm

Do not prefill 'admin' in the router login page

Mon Jan 08, 2024 4:37 pm

Hello,

When I log onto the router itself, the login form is prefilled with the user 'admin'.

I'd like the 'Login' field empty by default (see screenshot 1).

The prefill could be helpful, but it's not in my case, because I disabled the admin account and created another one for admin purposes.

Looking at the HTML source, it's prefilled from the code served by the router (see screenshot 2).

Is it possible to make the 'Login' field empty by default?

Thank you in advance.
You do not have the required permissions to view the files attached to this post.
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26387
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Re: Do not prefill 'admin' in the router login page

Mon Jan 08, 2024 4:51 pm

No, you can't, but a better option is to not use Web config, but use Winbox instead. https://mt.lv/winbox
 
jaclaz
Long time Member
Long time Member
Posts: 667
Joined: Tue Oct 03, 2023 4:21 pm

Re: Do not prefill 'admin' in the router login page

Mon Jan 08, 2024 5:47 pm

Isn't that an option available in "branding"? :?

https://help.mikrotik.com/docs/display/ROS/Branding
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26387
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Re: Do not prefill 'admin' in the router login page

Mon Jan 08, 2024 5:48 pm

Branding can't change webfig, only the pre-login page.
 
jaclaz
Long time Member
Long time Member
Posts: 667
Joined: Tue Oct 03, 2023 4:21 pm

Re: Do not prefill 'admin' in the router login page

Mon Jan 08, 2024 6:06 pm

Branding can't change webfig, only the pre-login page.
Isn't the OP asking about what you call the pre-login page and that is called "Default webpage" on the help page about branding and that (loosely) looks like the picture here:
https://help.mikrotik.com/docs/display/ROS/Webfig
https://help.mikrotik.com/docs/download ... 820&api=v2
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26387
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Re: Do not prefill 'admin' in the router login page

Mon Jan 08, 2024 6:16 pm

yes, my bad, but in any case, use winbox :)
 
jaclaz
Long time Member
Long time Member
Posts: 667
Joined: Tue Oct 03, 2023 4:21 pm

Re: Do not prefill 'admin' in the router login page

Mon Jan 08, 2024 7:14 pm

yes, my bad, but in any case, use winbox :)
I see, here are the two recommended options to access a Mikrotik router:
1) winbox

:lol:
 
User avatar
Zayas
just joined
Topic Author
Posts: 2
Joined: Mon Jan 08, 2024 4:13 pm

Re: Do not prefill 'admin' in the router login page

Wed Jan 10, 2024 2:12 am

Thanks. I'll give it a closer look out of curiosity, but at first sight, it looks over-complicated for a small problem. I might as well use a Greasemonkey script in the browser.
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26387
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Re: Do not prefill 'admin' in the router login page

Wed Jan 10, 2024 8:11 am

Winbox and Webfig have the same amount of menus. Winbox is simply more stable, faster and works even if there is no IP. So it is not more complicated, it is only more reliable.
 
jaclaz
Long time Member
Long time Member
Posts: 667
Joined: Tue Oct 03, 2023 4:21 pm

Re: Do not prefill 'admin' in the router login page

Wed Jan 10, 2024 11:34 am

Personally I think that personalization of the web interface through branding and skin, together with a sensible user management is a useful resource.

I can imagine many use cases when you might want to give to some users access to the router with a simplified menu and without having them download and run winbox.

I know it is not wise from a security viewpoint, still it may be useful, though the procedure seems to be particularly complex (for "branding"), surely it is not worth it for such a minor nuisance as the pre-filled "admin".
 
optio
Long time Member
Long time Member
Posts: 675
Joined: Mon Dec 26, 2022 2:57 pm

Re: Do not prefill 'admin' in the router login page

Wed Jan 10, 2024 5:20 pm

Winbox is simply more stable, faster and works even if there is no IP. So it is not more complicated, it is only more reliable.
Try to paste large script to Winbox GUI script form field... Had to use WebFIg for this.
 
optio
Long time Member
Long time Member
Posts: 675
Joined: Mon Dec 26, 2022 2:57 pm

Re: Do not prefill 'admin' in the router login page

Thu Jan 11, 2024 12:59 am

Also Winbox crashes when trying to open large script (35KB), Winbox64 running with wine-8.0.1 (WineskinCX 23.7.1), attached log.
You do not have the required permissions to view the files attached to this post.

Who is online

Users browsing this forum: Amazon [Bot], dmitris, Jhonny and 32 guests