Differences From
Artifact [d16c1b9a13]:
35 35 end
36 36 end
37 37 credmgr.credlist = cl:finalize()
38 38 end
39 39 credmgr:append(&a)
40 40 --if credmgr.credlist.ct > 0 then credmgr.credlist:free() end
41 41 else
42 - if new:cmp(lib.str.plit'pw') then
42 + if new:cmp('pw') then
43 43 var d: data.view.conf_sec_pwnew
44 44 var time = lib.osclock.time(nil)
45 45 var timestr: int8[26] lib.osclock.ctime_r(&time, ×tr[0])
46 46 var cmt = co:stra(48)
47 47 cmt:lpush('enrolled over http on '):push(×tr[0],0)
48 48 d.comment = cmt:finalize()
49 49
50 50 var st = d:poolstr(&co.srv.pool)
51 51 --d.comment:free()
52 52 return st
53 - elseif new:cmp(lib.str.plit'challenge') then
53 + elseif new:cmp('challenge') then
54 54 -- we're going to break the rules a bit and do database munging from
55 55 -- the rendering code, because doing otherwise in this case would be
56 56 -- genuinely nightmarish
57 - elseif new:cmp(lib.str.plit'otp') then
58 - elseif new:cmp(lib.str.plit'api') then
57 + elseif new:cmp('otp') then
58 + elseif new:cmp('api') then
59 59 else return pstr.null() end
60 60 end
61 61 else body:append(&a) end
62 62
63 63 return a:finalize()
64 64 end
65 65