In this factoid the following assumptions are made
You have weechat, weechat-plugins and iset.pl installed and working
You have setup a server called fn and have a registered nick/password setup already on whatever server was configured for server fn.
There are several things you need do for sasl to work.
Add your registered nick and password to sec.conf
/secure set fn.nick replace_with_your_nick
/secure set fn.pass replace_with_your_password
Then you can check they are correct by typing /secure
pressing alt(or esc) with v as per instructions at top toggles content.
It should look like sasl-secure.png
Tell the sasl settings where to find this nick and password
/iset sasl should look like iset-sasl.png
/set irc.server.fn.sasl_password ${sec.data.fn.pass}
/set irc.server.fn.sasl_username ${sec.data.fn.nick}
If you wish to regain your nick using the above you can create an alias
/alias regain /eval /msg nickserv regain ${sec.data.fn.nick} ${sec.data.fn.pass}
you can set your server command to run this automagically with
/set irc.server.fn.command /regain
other commands can be added with ; but beware as some do not like ;
in those cases placing them inside an alias like above solves many problems
also makes them easier to test before real life use
All this was generated from a functional system, but please let me know if you spot any errors caused by my poor cut/pasting skills.