Community discussions

MikroTik App
 
ach5948
just joined
Topic Author
Posts: 1
Joined: Sun Apr 11, 2021 11:49 pm

Disable Webfig Username autofill

Sun Apr 11, 2021 11:58 pm

When you go to the webfig login page, the username is prefilled (usually admin). Is there any way to turn this off so that the username is just blank. It messes with my password manager's auto-type
 
whiskerroutes
just joined
Posts: 2
Joined: Tue Jun 27, 2023 5:27 am

Re: Disable Webfig Username autofill

Thu Jun 29, 2023 10:27 pm

I'd also be interested in disabling that behaviour. I've disabled the default admin account and so must always clear it to enter my own username. Tried looking to see if possible to do with a skin as well but unclear on that.
 
User avatar
chechito
Forum Guru
Forum Guru
Posts: 2989
Joined: Sun Aug 24, 2014 3:14 am
Location: Bogota Colombia
Contact:

Re: Disable Webfig Username autofill

Thu Jun 29, 2023 11:01 pm

sounds like a good idea
 
User avatar
k6ccc
Forum Guru
Forum Guru
Posts: 1490
Joined: Fri May 13, 2016 12:01 am
Location: Glendora, CA, USA (near Los Angeles)
Contact:

Re: Disable Webfig Username autofill

Fri Jun 30, 2023 5:03 pm

That is most likely happening in your browser, not in WebFig.
Just an educated guess as I never use WebFig.
 
User avatar
Amm0
Forum Guru
Forum Guru
Posts: 3169
Joined: Sun May 01, 2016 7:12 pm
Location: California

Re: Disable Webfig Username autofill

Fri Jun 30, 2023 9:28 pm

That is most likely happening in your browser, not in WebFig.
Just an educated guess as I never use WebFig.
The default username come from the Login page's HTML, if one had not already been used in the same "session" (e.g. browser tab).

I can't say for 100%, and perhaps complex, you can likely replace the login page in a branding kit package. Inside the replaced login page you need to change the data-defaultuser=admin to whatever.
 
User avatar
k6ccc
Forum Guru
Forum Guru
Posts: 1490
Joined: Fri May 13, 2016 12:01 am
Location: Glendora, CA, USA (near Los Angeles)
Contact:

Re: Disable Webfig Username autofill

Fri Jun 30, 2023 9:31 pm

So much for my educated guess....
 
User avatar
Amm0
Forum Guru
Forum Guru
Posts: 3169
Joined: Sun May 01, 2016 7:12 pm
Location: California

Re: Disable Webfig Username autofill

Fri Jun 30, 2023 11:35 pm

So much for my educated guess....
Well, if I hadn't looked at the webfig internals recently... I might have agreed. ;) See viewtopic.php?t=79771&hilit=webfig#p1007098

The OP's issue seems like a some race condition where the password manager is setting the username field on page load, but some of Mikrotik's JavaScript populates the username field in background – e.g. AFTER the password manager already set the field...

As feature request, it would be nice to set the "default user" in RouterOS config, especially since I'd say its a "best practice" to NOT use "admin" as a login name, but it being default only encourages it ;). Even if possible with branding kit, that's awful complex & not 100% it work since I haven't tried doing that.
 
User avatar
k6ccc
Forum Guru
Forum Guru
Posts: 1490
Joined: Fri May 13, 2016 12:01 am
Location: Glendora, CA, USA (near Los Angeles)
Contact:

Re: Disable Webfig Username autofill

Fri Jun 30, 2023 11:40 pm

...especially since I'd say its a "best practice" to NOT use "admin" as a login name, but it being default only encourages it ;).
Agreed. I don't use "admin" or "administrator" (with or without a capital A) as an admin UserID on anything where I have a choice. I do have a few monitoring systems that don't give a choice - argh!

Who is online

Users browsing this forum: jookraw and 50 guests