* feat(plugin-verification): add plugin-verification and phone for users * feat(plugin-verification): add env example * fix(plugin-verification): fix locales * fix(plugin-verification): remove sending comment * fix(plugin-verification): fix i18n * refactor(plugin-verification): move invalid error message to action * fix(plugin-verification): add field migration * chore(plugin-verification): update packages version * test(plugin-verification): temp remove new package dependency * refactor(plugin-verification): make sms authentication configurable in system settings * fix: smsAuthEnabled * feat: update preset-nocobase Co-authored-by: chenos <chenlinxh@gmail.com>
15 lines
296 B
TypeScript
15 lines
296 B
TypeScript
import * as verifications from './verifications';
|
|
|
|
function make(name, mod) {
|
|
return Object.keys(mod).reduce((result, key) => ({
|
|
...result,
|
|
[`${name}:${key}`]: mod[key]
|
|
}), {})
|
|
}
|
|
|
|
export default function ({ app }) {
|
|
app.actions({
|
|
...make('verifications', verifications)
|
|
});
|
|
}
|