mirror of
https://github.com/rwinkhart/libmutton.git
synced 2026-09-01 14:47:25 -04:00
Initial password aging support
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
//go:build !windows
|
||||
|
||||
package global
|
||||
|
||||
// GetRealPath returns the full path to an entry (given the vanity path).
|
||||
func GetRealPath(vanityPath string) string {
|
||||
return EntryRoot + vanityPath
|
||||
}
|
||||
|
||||
// GetVanityPath returns a vanityPath given a realPath
|
||||
func GetVanityPath(realPath string) string {
|
||||
return realPath[rootLength:]
|
||||
}
|
||||
Reference in New Issue
Block a user