I just now had a reason to programmatically change the admin password for pier and
here's the expression that I used:
(((WADispatcher default handlerAt: 'pier')
preferenceAt: #kernel)
propertyAt: #adminUser)
password: 'newPassword'
Tweak the dispatcher lookup to match your pier path...
Dale
----- Original Message -----
| From: "Lukas Renggli" <renggli(a)gmail.com>
| To: "Pier and Related Tools Magritte ..." <smallwiki(a)iam.unibe.ch>
| Sent: Tuesday, August 16, 2011 1:23:32 PM
| Subject: Re: Resetting admin passwork from the image
|
| You can inspect "PRKernel instances" that contains a list of Pier
| instances.
|
| Navigate to your Pier instance, and then into "properties" and
| "users". From that list inspect the user you want to change and
| evaluate "self password: 'password'".
|
| Cheers,
| Lukas
|
| On 16 August 2011 22:17, Offray Vladimir Luna Cárdenas
| <offray(a)riseup.net> wrote:
| > Hi all,
| >
| > It seems that I as pretty tired when I made my last changes in the
| > image in
| > the processo to make it ready for a public site and I forgot the
| > admin
| > password. There is any way to reset it from the image (instead of
| > the web
| > interface)?
| >
| > Thanks,
| >
| > Offray
| > _______________________________________________
| > Magritte, Pier and Related Tools ...
| >
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
| >
|
|
|
| --
| Lukas Renggli
|
www.lukas-renggli.ch
|
| _______________________________________________
| Magritte, Pier and Related Tools ...
|
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
|