Differences From
Artifact [671b92715b]:
31 31 handle = user.handle;
32 32 name = lib.coalesce(user.nym, user.handle);
33 33 }
34 34 if creds.pw() then
35 35 ch.challenge = P'enter the password associated with your account'
36 36 ch.label = P'password'
37 37 ch.method = P'pw'
38 + ch.auto = P'current-password';
38 39 elseif creds.otp() then
39 40 ch.challenge = P'enter a valid one-time password for your account'
40 41 ch.label = P'OTP code'
41 42 ch.method = P'otp'
43 + ch.auto = P'one-time-code';
42 44 elseif creds.challenge() then
43 45 ch.challenge = P'sign the challenge token: <code>...</code>'
44 46 ch.label = P'digest'
45 47 ch.method = P'challenge'
48 + ch.auto = P'one-time-code';
46 49 else
47 50 co:complain(500,'login failure','unknown login method')
48 51 return
49 52 end
50 53
51 54 doc.body = ch:tostr()
52 55 else