I might have missed something, but I haven't found any simple way to change my admin password (with emailing not active) in gogs. It was quite easy to find the hash location, but as I didn't know how it was generated... Luckily I eventually found the parameters used, so here it is for you if you need them embedded in a script : var pbkdf2 = require('pbkdf2-sha256'); var key = 'YourChosenPasword'; var salt = 'AnyRandomValue'; var hash = pbkdf2(key, salt, 10000, 50); console.log(hash.toString('hex')); All I had to do was then to update the table user , setting passwd to the generated value (and updating salt with the value used in the script).
Posts les plus consultés de ce blog
Original article published my new blog blog.assad.fr “Nobody use it. It's a dead language. It's a technology of the past…” Are the kind of statement you'll be likely to hear about Perl nowadays. Nonetheless, I've landed one of the most exciting mission I've ever had because of Perl. I've met great people, because of Perl. I've solved issues in no time, because of Perl. So, there's no chance I'll drop Perl any time soon. That doesn't mean I'll stop exploring new languages (like Kotlin) or even loving other ones (like Golang). But you know, when I love it's forever… WHAT PERL IN 2020? For me it will be maintaining and improving an impressive code base used by thousands of people in a great University. Improving Net::Whois::RIPE, as some people are still using it. (by the way, a new release is out!) Probably more testing (setting up a CPAN smoker?) and always some more tools… AND THEN? It will probably be like th