updated mailbox app password
This commit is contained in:
@@ -40,6 +40,10 @@ func (a *App) funcMap() template.FuncMap {
|
||||
}
|
||||
return t.Format(pyToGoLayout(layout))
|
||||
},
|
||||
// isPast reports whether a nullable expiry timestamp has already passed —
|
||||
// used to badge an app password as "Expired" even while is_active is
|
||||
// still 1 (expiry and revocation are independent states).
|
||||
"isPast": func(t *time.Time) bool { return t != nil && t.Before(time.Now()) },
|
||||
"title": strings.Title,
|
||||
"upper": strings.ToUpper,
|
||||
"lower": strings.ToLower,
|
||||
|
||||
Reference in New Issue
Block a user