Hotspot Users

Remove Passwords from All Hotspot Users (QR Login) — 7

Clears the password of every hotspot user that has one, so cards generated with QR codes log in with the username only.

MikroTik Version

RouterOS 7

# EN: Loop over every user that currently has a password | AR: المرور على كل مستخدم لديه كلمة مرور
:foreach u in=[/ip hotspot user find where password!=""] do={
    # EN: Clear the password (cannot be undone) | AR: مسح كلمة المرور (لا يمكن التراجع)
    /ip hotspot user set $u password=""
}